while ((cp = remglob(argv, 0)) != NULL) {
while ((cp = remglob(argv, 0, NULL)) != NULL) {
mput(argc, argv)	int argc;	char *argv[];{	int i;	sig_t oldintr;	int ointer;	char *tp;	if (argc < 2 && !another(&argc, &argv, "local-files")) {		printf("usage: %s local-files\n", argv[0]);		code = -1;		return;	}	mname = argv[0];	mflag = 1;	oldintr = signal(SIGINT, mabort);	(void)setjmp(jabort);	if (proxy) {		char *cp, *tp2, tmpbuf[MAXPATHLEN];		while ((cp = remglob(argv, 0)) != NULL) {			if (*cp == '\0') {				mflag = 0;				continue;			}			if (mflag && confirm(argv[0], cp)) {				tp = cp;				if (mcase) {					while (*tp && !islower(*tp)) {						tp++;					}					if (!*tp) {						tp = cp;						tp2 = tmpbuf;						while ((*tp2 = *tp) != NULL) {						     if (isupper(*tp2)) {						        *tp2 = 'a' + *tp2 - 'A';						     }						     tp++;						     tp2++;						}					}					tp = tmpbuf;				}				if (ntflag) {					tp = dotrans(tp);				}				if (mapflag) {					tp = domap(tp);				}				sendrequest((sunique) ? "STOU" : "STOR",				    cp, tp, cp != tp || !interactive);				if (!mflag && fromatty) {					ointer = interactive;					interactive = 1;					if (confirm("Continue with", "mput")) {						mflag++;					}					interactive = ointer;				}			}		}		(void)signal(SIGINT, oldintr);		mflag = 0;		return;	}	for (i = 1; i < argc; i++) {		char **cpp;		glob_t gl;		int flags;		if (!doglob) {			if (mflag && confirm(argv[0], argv[i])) {				tp = (ntflag) ? dotrans(argv[i]) : argv[i];				tp = (mapflag) ? domap(tp) : tp;				sendrequest((sunique) ? "STOU" : "STOR",				    argv[i], tp, tp != argv[i] || !interactive);				if (!mflag && fromatty) {					ointer = interactive;					interactive = 1;					if (confirm("Continue with", "mput")) {						mflag++;					}					interactive = ointer;				}			}			continue;		}		memset(&gl, 0, sizeof(gl));		flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE;		if (glob(argv[i], flags, NULL, &gl) || gl.gl_pathc == 0) {			warnx("%s: not found", argv[i]);			globfree(&gl);			continue;		}		for (cpp = gl.gl_pathv; cpp && *cpp != NULL; cpp++) {			if (mflag && confirm(argv[0], *cpp)) {				tp = (ntflag) ? dotrans(*cpp) : *cpp;				tp = (mapflag) ? domap(tp) : tp;				sendrequest((sunique) ? "STOU" : "STOR",				    *cpp, tp, *cpp != tp || !interactive);				if (!mflag && fromatty) {					ointer = interactive;					interactive = 1;					if (confirm("Continue with", "mput")) {						mflag++;					}					interactive = ointer;				}			}		}		globfree(&gl);	}	(void)signal(SIGINT, oldintr);	mflag = 0;}