diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-10-25 17:47:20 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-10-25 17:47:20 +0000 |
commit | 98fa9be4347f87106291da9f0232922c82d889c4 (patch) | |
tree | 0bdda668e1283b62d73556350b3e1f6cb7c68de2 /sysutils/netdump-server/files/patch-server.c | |
parent | 2012-10-20 x11-toolkits/py-SciParam: Depends on the deprecated wx 2.4 (diff) |
2012-10-20 x11-themes/metacity-ana-theme: No more public distfiles
2012-10-20 x11-themes/gtk-ana-theme: No more public distfiles
2012-10-20 x11-fonts/getbdf: No more public distfiles
2012-10-20 x11-fonts/arkpandora: No more public distfiles
2012-10-20 x11-clocks/wmdate: No more public distfiles
2012-10-20 x11/multi-gnome-terminal: depends on deprecated gnome1 things
2012-10-20 www/wacko: No more public distfiles
2012-10-20 sysutils/wtmp-tools: No more public distfiles
2012-10-20 sysutils/reed: No more public distfiles
2012-10-20 sysutils/pdumpfs-rsync: No more public distfiles
2012-10-20 sysutils/pdumpfs-clean: No more public distfiles
2012-10-20 sysutils/netdump-server: No more public distfiles
2012-10-20 sysutils/nctop: No more public distfiles
2012-10-20 sysutils/memgrep: No more public distfiles
2012-10-20 sysutils/logserial: No more public distfiles
2012-10-20 sysutils/dupfind: No more public distfiles
2012-10-20 sysutils/dump9660: No more public distfiles
2012-10-20 sysutils/desktopbsd-tools: No more public distfiles
2012-10-20 sysutils/agef: No more public distfiles
Remove a bunch of expired ports
Feature safe: yes
Diffstat (limited to 'sysutils/netdump-server/files/patch-server.c')
-rw-r--r-- | sysutils/netdump-server/files/patch-server.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/sysutils/netdump-server/files/patch-server.c b/sysutils/netdump-server/files/patch-server.c deleted file mode 100644 index 6b58e2f961f6..000000000000 --- a/sysutils/netdump-server/files/patch-server.c +++ /dev/null @@ -1,55 +0,0 @@ ---- server.c.orig Sun Mar 20 11:17:45 2005 -+++ server.c Sun Mar 20 10:09:04 2005 -@@ -66,7 +66,7 @@ - dir = g_new (CrashDir, 1); - dir->time = now; - dir->path = g_strdup_printf ("%s/%d.%d.%d.%d-%s", -- NETDUMP_DIR_PREFIX, -+ config.dumpdirprefix, - (ip >> 24) & 0xff, - (ip >> 16) & 0xff, - (ip >> 8) & 0xff, -@@ -100,7 +100,7 @@ - char *cmdline; - int res = -1; - -- filename = g_strconcat (NETDUMP_DIR_PREFIX "/scripts/", -+ filename = g_strconcat (config.dumpdirprefix, "/scripts/", - script, - NULL); - -@@ -147,7 +147,7 @@ - } - - path = g_strdup_printf ("%s/magic/%d.%d.%d.%d", -- NETDUMP_DIR_PREFIX, -+ config.dumpdirprefix, - (ip >> 24) & 0xff, - (ip >> 16) & 0xff, - (ip >> 8) & 0xff, -@@ -373,10 +373,10 @@ - - openlog("netdump", LOG_PID, LOG_DAEMON); - -- if (chdir (NETDUMP_DIR_PREFIX) == -1) -+ if (chdir (config.dumpdirprefix) == -1) - { -- syslog (LOG_ERR, "can't cd to %s", NETDUMP_DIR_PREFIX); -- fprintf (stderr, "can't cd to %s", NETDUMP_DIR_PREFIX); -+ syslog (LOG_ERR, "can't cd to %s", config.dumpdirprefix); -+ fprintf (stderr, "can't cd to %s\n", config.dumpdirprefix); - exit (1); - } - -@@ -429,6 +429,11 @@ - - loop = g_main_new (TRUE); - g_main_run (loop); -+ -+ if (config.pidfile != NULL) -+ free(config.pidfile); -+ if (config.dumpdirprefix != NULL) -+ free(config.dumpdirprefix); - - return 0; - } |