(ftpd_popen): Try standard binary if the one in ~ftp fails.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1769 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-05-25 13:35:53 +00:00
parent f1213f7610
commit 2d7738bc02

View File

@@ -169,6 +169,8 @@ ftpd_popen(char *program, char *type, int do_stderr, int no_glob)
close(pdes[1]);
}
execv(gargv[0], gargv);
gargv[0] = argv[0];
execv(gargv[0], gargv);
_exit(1);
}
/* parent; assume fdopen can't fail... */