Explorar el Código

really use narglist in do_script()

Wichert Akkerman hace 25 años
padre
commit
a70a534aac
Se han modificado 2 ficheros con 5 adiciones y 1 borrados
  1. 4 0
      ChangeLog
  2. 1 1
      main/help.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Wed Jun 20 18:56:35 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
+
+  * main/help.c: actually use narglist in do_script()
+
 Wed Jun 20 11:28:25 CDT 2001 Adam Heath <doogie@debian.org>
 Wed Jun 20 11:28:25 CDT 2001 Adam Heath <doogie@debian.org>
 
 
   * Merged in changes from 1.9.10 to 1.9.11 branch.
   * Merged in changes from 1.9.10 to 1.9.11 branch.

+ 1 - 1
main/help.c

@@ -265,7 +265,7 @@ static int do_script(const char *pkg, const char *scriptname, const char *script
     narglist=nfmalloc(r*sizeof(char*));
     narglist=nfmalloc(r*sizeof(char*));
     for (r=1; arglist[r]; r++)
     for (r=1; arglist[r]; r++)
       narglist[r]= arglist[r];
       narglist[r]= arglist[r];
-    scriptexec= preexecscript(scriptpath,arglist);
+    scriptexec= preexecscript(scriptpath,narglist);
     narglist[0]= scriptexec;
     narglist[0]= scriptexec;
     execv(scriptexec,arglist);
     execv(scriptexec,arglist);
     ohshite(desc,name);
     ohshite(desc,name);