pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/lastfss Fix two bugs in a three line function.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/937d36ad8d36
branches:  trunk
changeset: 648756:937d36ad8d36
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Mar 18 15:04:17 2015 +0000

description:
Fix two bugs in a three line function.

diffstat:

 sysutils/lastfss/distinfo                |   3 ++-
 sysutils/lastfss/patches/patch-lastfss.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 854aa7230723 -r 937d36ad8d36 sysutils/lastfss/distinfo
--- a/sysutils/lastfss/distinfo Wed Mar 18 15:03:43 2015 +0000
+++ b/sysutils/lastfss/distinfo Wed Mar 18 15:04:17 2015 +0000
@@ -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 -r 854aa7230723 -r 937d36ad8d36 sysutils/lastfss/patches/patch-lastfss.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/lastfss/patches/patch-lastfss.c  Wed Mar 18 15:04:17 2015 +0000
@@ -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;
+ }
+ 



Home | Main Index | Thread Index | Old Index