diff options
author | dinoex <dinoex@FreeBSD.org> | 2017-02-09 18:20:41 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2017-02-09 18:20:41 +0800 |
commit | 9f8878964204bff2553427786c19b35b3f28c2e0 (patch) | |
tree | 1ac20c30cab237b7c5a25a15535e13e9eeffb6bb /news/ifmail/files/patch-rdconfig.c | |
parent | f819d8ffdfbe60772a9e70ba73407fd38483be34 (diff) | |
download | freebsd-ports-gnome-9f8878964204bff2553427786c19b35b3f28c2e0.tar.gz freebsd-ports-gnome-9f8878964204bff2553427786c19b35b3f28c2e0.tar.zst freebsd-ports-gnome-9f8878964204bff2553427786c19b35b3f28c2e0.zip |
- add LICENSE
- default config now PREFIX aware
- make portlint happier
Diffstat (limited to 'news/ifmail/files/patch-rdconfig.c')
-rw-r--r-- | news/ifmail/files/patch-rdconfig.c | 62 |
1 files changed, 26 insertions, 36 deletions
diff --git a/news/ifmail/files/patch-rdconfig.c b/news/ifmail/files/patch-rdconfig.c index 0783ba7906b4..544bb6f9a48c 100644 --- a/news/ifmail/files/patch-rdconfig.c +++ b/news/ifmail/files/patch-rdconfig.c @@ -1,36 +1,26 @@ -*** iflib/rdconfig.c.orig Tue Oct 19 11:27:29 2004 ---- iflib/rdconfig.c Tue Oct 19 11:29:47 2004 -*************** -*** 5,10 **** ---- 5,11 ---- - #include <sys/types.h> - #include <sys/stat.h> - #include <time.h> -+ #include <unistd.h> - #include "xutil.h" - #include "lutil.h" - #include "ftn.h" -*************** -*** 402,409 **** - verbose=setverbose(arg); - break; - -! case 'I': configname=arg; -! break; - - default: return 1; /* unrecognized option */ - ---- 403,415 ---- - verbose=setverbose(arg); - break; - -! case 'I': -! if (issetugid()) -! fprintf(stderr, -! "readconfig: -I option ignored while running as set-user-ID\n"); -! else -! configname=arg; -! break; - - default: return 1; /* unrecognized option */ - +--- iflib/rdconfig.c.orig 1997-04-26 09:46:24 UTC ++++ iflib/rdconfig.c +@@ -5,6 +5,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <time.h> ++#include <unistd.h> + #include "xutil.h" + #include "lutil.h" + #include "ftn.h" +@@ -402,8 +403,13 @@ char *arg; + verbose=setverbose(arg); + break; + +- case 'I': configname=arg; +- break; ++ case 'I': ++ if (issetugid()) ++ fprintf(stderr, ++ "readconfig: -I option ignored while running as set-user-ID\n"); ++ else ++ configname=arg; ++ break; + + default: return 1; /* unrecognized option */ + |