diff options
author | sem <sem@FreeBSD.org> | 2004-07-15 11:11:40 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2004-07-15 11:11:40 +0800 |
commit | 4ac698ca8f5459e8f612f6efe2b3b95144440c9e (patch) | |
tree | be2f9d7c90554abd83139fceeeb01cb6394119a9 /news/fidogate-ds/files | |
parent | 370c251c544dd8c07ed5cee42e6bbc5e766b01fd (diff) | |
download | freebsd-ports-gnome-4ac698ca8f5459e8f612f6efe2b3b95144440c9e.tar.gz freebsd-ports-gnome-4ac698ca8f5459e8f612f6efe2b3b95144440c9e.tar.zst freebsd-ports-gnome-4ac698ca8f5459e8f612f6efe2b3b95144440c9e.zip |
files/patch-send-fidogate.in: fix send-fidogate warnings
files/patch-ngoper.c: if AutoCreateRenumberCmd is not defined, this is
silently skipped
Submitted by: maintainer
Approved by: krion (mentor)
Diffstat (limited to 'news/fidogate-ds/files')
-rw-r--r-- | news/fidogate-ds/files/patch-ngoper.c | 40 | ||||
-rw-r--r-- | news/fidogate-ds/files/patch-send-fidogate.in | 10 |
2 files changed, 50 insertions, 0 deletions
diff --git a/news/fidogate-ds/files/patch-ngoper.c b/news/fidogate-ds/files/patch-ngoper.c new file mode 100644 index 000000000000..8b97d1b12a19 --- /dev/null +++ b/news/fidogate-ds/files/patch-ngoper.c @@ -0,0 +1,40 @@ +--- src/toss/ngoper.c.old Wed Jul 14 16:13:34 2004 ++++ src/toss/ngoper.c Sat Jul 10 17:34:20 2004 +@@ -20,7 +20,7 @@ + int c; + int option_index; + int remove; +- char *cmd_ng, *cmd_rn, *cmd_rm; ++ char *cmd_ng, *cmd_rn = NULL, *cmd_rm; + char *c_flag=NULL; + char *p; + char buf[BUFSIZ]; +@@ -106,12 +106,6 @@ + debug(8, "config: AutoCreateRenumberCmd %s", p); + cmd_rn = p; + } +- else +- { +- printf("config: parameter `AutoCreateRenumberCmd' not defined!\n"); +- exit_free(); +- exit(1); +- } + + /* AutoCreateRmgroupCmd */ + if (NULL != (p = cf_get_string("AutoCreateRmgroupCmd", TRUE))) +@@ -136,9 +130,12 @@ + if (0 != run_system(buf)) + return 1; + +- str_printf(buf, sizeof(buf), cmd_rn, argv[optind+1]); +- if (0 != run_system(buf)) +- return 1; ++ if (cmd_rn) ++ { ++ str_printf(buf, sizeof(buf), cmd_rn, argv[optind+1]); ++ if (0 != run_system(buf)) ++ return 1; ++ } + } + else + { diff --git a/news/fidogate-ds/files/patch-send-fidogate.in b/news/fidogate-ds/files/patch-send-fidogate.in new file mode 100644 index 000000000000..f0ca8a89bcb1 --- /dev/null +++ b/news/fidogate-ds/files/patch-send-fidogate.in @@ -0,0 +1,10 @@ +--- src/gate/send-fidogate.in.old Wed Jul 14 16:10:57 2004 ++++ src/gate/send-fidogate.in Wed Jul 14 16:11:10 2004 +@@ -10,7 +10,6 @@ + export FIDOGATE_LOGFILE + + eval `<NEWSBINDIR>/innconfval -s` +-eval `<LIBEXECDIR>/confval` + + RFC2FTN=<SEND_RFC2FTN> + PROGNAME=`basename $0` |