View | Details | Raw Unified | Return to bug 1691
Collapse All | Expand All

(-)sftp.c (-4 / +5 lines)
Lines 1078-1094 parse_args(const char **cpp, int *pflag, Link Here
1078
	/* Skip leading whitespace */
1078
	/* Skip leading whitespace */
1079
	cp = cp + strspn(cp, WHITESPACE);
1079
	cp = cp + strspn(cp, WHITESPACE);
1080
1080
1081
	/* Ignore blank lines and lines which begin with comment '#' char */
1082
	if (*cp == '\0' || *cp == '#')
1083
		return (0);
1084
1085
	/* Check for leading '-' (disable error processing) */
1081
	/* Check for leading '-' (disable error processing) */
1086
	*iflag = 0;
1082
	*iflag = 0;
1087
	if (*cp == '-') {
1083
	if (*cp == '-') {
1088
		*iflag = 1;
1084
		*iflag = 1;
1089
		cp++;
1085
		cp++;
1086
		cp = cp + strspn(cp, WHITESPACE);
1090
	}
1087
	}
1091
1088
1089
	/* Ignore blank lines and lines which begin with comment '#' char */
1090
	if (*cp == '\0' || *cp == '#')
1091
		return (0);
1092
1092
	if ((argv = makeargv(cp, &argc)) == NULL)
1093
	if ((argv = makeargv(cp, &argc)) == NULL)
1093
		return -1;
1094
		return -1;
1094
1095

Return to bug 1691