summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/ups-nut/patches/patch-ac')
-rw-r--r--sysutils/ups-nut/patches/patch-ac18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/ups-nut/patches/patch-ac b/sysutils/ups-nut/patches/patch-ac
new file mode 100644
index 00000000000..96687a5c9ae
--- /dev/null
+++ b/sysutils/ups-nut/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.4.4.2 2002/08/25 21:21:32 jlam Exp $
+
+--- clients/upslog.c.orig Fri May 17 08:26:22 2002
++++ clients/upslog.c
+@@ -180,6 +180,13 @@ void print_status(void)
+ continue;
+ }
+
++ /* if a %%, append % and start over */
++ if (logformat[i+1] == '%') {
++ snprintfcat(logbuffer, sizeof(logbuffer), "%%");
++ i++;
++ continue;
++ }
++
+ /* it must start with a % now - %<cmd>[ <arg>]%*/
+
+ cmd = xstrdup(&logformat[i+1]);