projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 3.3.1
[debian/amanda]
/
common-src
/
pipespawn.c
diff --git
a/common-src/pipespawn.c
b/common-src/pipespawn.c
index 9e4e90cc1915643d0797e38b10ae3eb81fc70fa2..3574acc05cca24b248195a09462bf81f7ed778f4 100644
(file)
--- a/
common-src/pipespawn.c
+++ b/
common-src/pipespawn.c
@@
-81,7
+81,6
@@
pipespawnv_passwd(
int * stderrfd,
char ** my_argv)
{
int * stderrfd,
char ** my_argv)
{
- int argc;
pid_t pid;
int i, inpipe[2], outpipe[2], errpipe[2], passwdpipe[2];
char number[NUM_STR_SIZE];
pid_t pid;
int i, inpipe[2], outpipe[2], errpipe[2], passwdpipe[2];
char number[NUM_STR_SIZE];
@@
-105,12
+104,10
@@
pipespawnv_passwd(
memset(outpipe, -1, SIZEOF(outpipe));
memset(errpipe, -1, SIZEOF(errpipe));
memset(passwdpipe, -1, SIZEOF(passwdpipe));
memset(outpipe, -1, SIZEOF(outpipe));
memset(errpipe, -1, SIZEOF(errpipe));
memset(passwdpipe, -1, SIZEOF(passwdpipe));
- argc = 0;
cmdline = stralloc(prog);
for(arg = my_argv; *arg != NULL; arg++) {
if (*arg != skip_argument) {
cmdline = stralloc(prog);
for(arg = my_argv; *arg != NULL; arg++) {
if (*arg != skip_argument) {
- argc++;
quoted = quote_string(*arg);
cmdline = vstrextend(&cmdline, " ", quoted, NULL);
amfree(quoted);
quoted = quote_string(*arg);
cmdline = vstrextend(&cmdline, " ", quoted, NULL);
amfree(quoted);