View | Details | Raw Unified | Return to bug 1235 | Differences between
and this patch

Collapse All | Expand All

(-)scp.c.orig (-2 / +3 lines)
Lines 298-305 Link Here
298
	argc -= optind;
298
	argc -= optind;
299
	argv += optind;
299
	argv += optind;
300
300
301
	if ((pwd = getpwuid(userid = getuid())) == NULL)
301
	if (!iamremote) /* Username not needed on remote end and might not be available when chrooted  */
302
		fatal("unknown user %u", (u_int) userid);
302
		if ((pwd = getpwuid(userid = getuid())) == NULL)
303
			fatal("unknown user %u", (u_int) userid);
303
304
304
	if (!isatty(STDERR_FILENO))
305
	if (!isatty(STDERR_FILENO))
305
		showprogress = 0;
306
		showprogress = 0;

Return to bug 1235