summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-03-18 15:04:17 +0000
committerjoerg <joerg@pkgsrc.org>2015-03-18 15:04:17 +0000
commit457db822e11b5cdf64e3892fbeee7eb68a043ab7 (patch)
treeed56eaef10572b38af5a3b66db439fc9d6db7edf /sysutils
parent93d291fadcf8aa14bbb21704abf945105fb061c5 (diff)
downloadpkgsrc-457db822e11b5cdf64e3892fbeee7eb68a043ab7.tar.gz
Fix two bugs in a three line function.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/lastfss/distinfo3
-rw-r--r--sysutils/lastfss/patches/patch-lastfss.c15
2 files changed, 17 insertions, 1 deletions
diff --git a/sysutils/lastfss/distinfo b/sysutils/lastfss/distinfo
index 30edd48dc05..babe35f0f4c 100644
--- a/sysutils/lastfss/distinfo
+++ b/sysutils/lastfss/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2015/03/10 09:06:04 manu Exp $
+$NetBSD: distinfo,v 1.2 2015/03/18 15:04:17 joerg Exp $
SHA1 (lastfss-0.1.tgz) = d58539a185446a2d3b7c710b1c2fb10d460cad3a
RMD160 (lastfss-0.1.tgz) = de7969f5c5e2056c69b8c1ae772ee07c525176e3
Size (lastfss-0.1.tgz) = 2754 bytes
+SHA1 (patch-lastfss.c) = f87f3e9e1d1478a387195a8d25eb5f5abb870421
diff --git a/sysutils/lastfss/patches/patch-lastfss.c b/sysutils/lastfss/patches/patch-lastfss.c
new file mode 100644
index 00000000000..37e0f0f032e
--- /dev/null
+++ b/sysutils/lastfss/patches/patch-lastfss.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lastfss.c,v 1.1 2015/03/18 15:04:17 joerg Exp $
+
+--- lastfss.c.orig 2015-03-17 22:25:25.000000000 +0000
++++ lastfss.c
+@@ -54,8 +54,8 @@ char atexit_msg[MAXPATHLEN] = { 0 };
+ void
+ atexit_func(void)
+ {
+- if (*atexit_msg != '\0');
+- syslog(LOG_INFO, atexit_msg);
++ if (*atexit_msg != '\0')
++ syslog(LOG_INFO, "%s", atexit_msg);
+ return;
+ }
+