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

Bug#296030: dpkg: Show arguments to maintainer scripts in debug.



severity 296030 minor
tags 296030 pending
thanks

On Sat, 2005-02-19 at 21:18 +0100, Kurt Roeckx wrote:

> When using the -D2 option from dpkg to show the maintainer
> scripts called, it would be nice of it also showed which
> arguments where passed to it.
> 
This isn't wishlist, it was a bug in the code.  Fixed.

--- orig/src/help.c
+++ mod/src/help.c
@@ -179,7 +179,7 @@
   }
   if (f_debug & dbg_scripts) {
     fprintf(stderr,"D0%05o: fork/exec %s (",dbg_scripts,path);
-    while (*argv) fprintf(stderr," %s",*argv++);
+    while (*++argv) fprintf(stderr," %s",*argv);
     fputs(" )\n",stderr);
   }
   instdirl= strlen(instdir);

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: