pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
runas: Patch for Linux
Module Name: pkgsrc-wip
Committed By: Jason W Bacon <bacon%NetBSD.org@localhost>
Pushed By: outpaddling
Date: Thu Feb 4 07:51:22 2021 -0600
Changeset: 8de3418865f8ada4b9608c073dad2e1baf12ead0
Modified Files:
runas/distinfo
Added Files:
runas/patches/patch-runas.c
Log Message:
runas: Patch for Linux
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8de3418865f8ada4b9608c073dad2e1baf12ead0
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
runas/distinfo | 1 +
runas/patches/patch-runas.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+)
diffs:
diff --git a/runas/distinfo b/runas/distinfo
index f20eb2042b..c0df1452c6 100644
--- a/runas/distinfo
+++ b/runas/distinfo
@@ -4,3 +4,4 @@ SHA1 (runas-0.1.0.5-e5a7dc8c5e19314bd4df317e3a825da47f96ad98.tar.gz) = 581f51734
RMD160 (runas-0.1.0.5-e5a7dc8c5e19314bd4df317e3a825da47f96ad98.tar.gz) = f6855663c1e96f65dc3e71f774d7f22fab2f9cce
SHA512 (runas-0.1.0.5-e5a7dc8c5e19314bd4df317e3a825da47f96ad98.tar.gz) = 495cb731be8382fc9be10b80555763ec724f311a6d736ba055259b1e674a8ce35a280d6b46939a0b426b3d17011b1005e209aab6b7ce5623a4cb2d333d7ccba1
Size (runas-0.1.0.5-e5a7dc8c5e19314bd4df317e3a825da47f96ad98.tar.gz) = 3114 bytes
+SHA1 (patch-runas.c) = d0a50e953b76e535cb7a209614411341fa47631b
diff --git a/runas/patches/patch-runas.c b/runas/patches/patch-runas.c
new file mode 100644
index 0000000000..cf7645702b
--- /dev/null
+++ b/runas/patches/patch-runas.c
@@ -0,0 +1,45 @@
+$NetBSD$
+
+# Linux missing strl*()
+
+--- runas.c.orig 2021-02-04 13:39:53.796790582 +0000
++++ runas.c
+@@ -18,6 +18,11 @@
+ #include <unistd.h>
+ #include <limits.h>
+
++#ifdef __linux__
++#define ARG_MAX 2097152 // getconf ARG_MAX CentOS 7
++#endif
++
++// Remove usage() from libbacon?
+ void usage(char *argv[])
+
+ {
+@@ -25,6 +30,26 @@ void usage(char *argv[])
+ exit(EX_USAGE);
+ }
+
++#ifdef __linux__
++size_t strlcat(char *dest,const char *src,size_t maxlen)
++
++{
++ char *dp,*sp;
++
++ /* Find end of first string */
++ for (dp=dest; (*dp != '\0') && --maxlen; ++dp)
++ ;
++
++ /* Concetanate second string */
++ for (sp=(char *)src; (*sp != '\0') && --maxlen; )
++ *dp++ = *sp++;
++
++ /* Null terminate */
++ *dp = '\0';
++ return dp-dest;
++}
++#endif
++
+ int main(int argc,char *argv[])
+
+ {
Home |
Main Index |
Thread Index |
Old Index