Code

patches: Added bts573299-rrdgraph-M.
authorSebastian Harl <sh@tokkee.org>
Sun, 21 Mar 2010 20:35:58 +0000 (21:35 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 21 Mar 2010 20:35:58 +0000 (21:35 +0100)
This fixes short option parsing in rrd_graph() by adding support for '-M' as
documented in the manpage.

Thanks to Ralf Hildebrandt for reporting this!
Closes: #573299
debian/changelog
debian/patches/bts573299-rrdgraph-M [new file with mode: 0644]
debian/patches/series

index c852f1f949aa0810f187e9dae4f01cad3c7e5cd7..1acd90db7a84ed621953a80a7fdec154f22708e2 100644 (file)
@@ -4,8 +4,11 @@ rrdtool (1.4.2-2) unstable; urgency=low
     - Added bts573638-rrdcgi-segfault: upstream patch fixing a segfault in
       rrdcgi's printlasttime() (and possibly others); thanks to Robert Luberda
       for reporting this (Closes: #573638).
+    - Added bts573299-rrdgraph-M: fix short option parsing in rrd_graph() --
+      added support for '-M' as documented in the manpage; thanks to Ralf
+      Hildebrandt for reporting this (Closes: #573299).
 
- -- Sebastian Harl <tokkee@debian.org>  Sun, 21 Mar 2010 21:28:05 +0100
+ -- Sebastian Harl <tokkee@debian.org>  Sun, 21 Mar 2010 21:33:46 +0100
 
 rrdtool (1.4.2-1) unstable; urgency=low
 
diff --git a/debian/patches/bts573299-rrdgraph-M b/debian/patches/bts573299-rrdgraph-M
new file mode 100644 (file)
index 0000000..6568e87
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/src/rrd_graph.c b/src/rrd_graph.c
+index 2c4f71a..275a8c0 100644
+--- a/src/rrd_graph.c
++++ b/src/rrd_graph.c
+@@ -4191,7 +4191,7 @@ void rrd_graph_options(
+         int       col_start, col_end;
+         opt = getopt_long(argc, argv,
+-                          "Aa:B:b:c:Dd:Ee:Ff:G:gh:IiJjL:l:Nn:Bb:oPR:rS:s:T:t:u:v:W:w:X:x:Yy:z",
++                          "Aa:B:b:c:Dd:Ee:Ff:G:gh:IiJjL:l:MNn:oPR:rS:s:T:t:u:v:W:w:X:x:Yy:z",
+                           long_options, &option_index);
+         if (opt == EOF)
+             break;
index 81b1166acad7746a3b026cb1acf183fd9011aea4..db134417910ccd9a6c8f6ec8a53997c8cd0e1467 100644 (file)
@@ -5,3 +5,4 @@ no-rpath-for-perl
 implicit-decl-fix
 bts530814-hurd
 bts573638-rrdcgi-segfault
+bts573299-rrdgraph-M