From: Ezra Peisach Date: Wed, 1 Nov 2000 20:30:04 +0000 (+0000) Subject: Oops - checked in a newer version by accident X-Git-Tag: krb5-1.3-alpha1~1764 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6a000b1cbbd0dc37909feec43489e5e4356b4cf;p=krb5.git Oops - checked in a newer version by accident git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12850 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftpd/popen.c b/src/appl/gssftp/ftpd/popen.c index 068706b61..d26746107 100644 --- a/src/appl/gssftp/ftpd/popen.c +++ b/src/appl/gssftp/ftpd/popen.c @@ -50,10 +50,8 @@ static char sccsid[] = "@(#)popen.c 5.9 (Berkeley) 2/25/91"; #include #endif -#include "extern.h" - /* - * Special version of popen which avoids call to shell. This insures no-one + * Special version of popen which avoids call to shell. This insures noone * may create a pipe to a hidden program as a side effect of a list or dir * command. */ @@ -67,13 +65,13 @@ FILE * ftpd_popen(program, type) char *program, *type; { - char *cp; - FILE *iop; + register char *cp; + FILE *volatile iop; int argc, gargc, pdes[2], pid; char **pop, *argv[MAX_ARGV], *gargv[MAX_GARGV], *vv[2]; - extern char **ftpglob(); + extern char **ftpglob(), **copyblk(); - if ((*type != 'r' && *type != 'w') || type[1]) + if (*type != 'r' && *type != 'w' || type[1]) return(NULL); if (!pids) { @@ -145,14 +143,11 @@ ftpd_popen(program, type) pfree: for (argc = 1; argv[argc] != NULL; argc++) { blkfree((char **)argv[argc]); -#if 0 free((char *)argv[argc]); -#endif } return(iop); } -int ftpd_pclose(iop) FILE *iop; {