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

Collapse All | Expand All

(-)openssh-5.4p1/servconf.c.orig (-1 / +1 lines)
Lines 492-498 Link Here
492
	expanded = tilde_expand_filename(path, getuid());
492
	expanded = tilde_expand_filename(path, getuid());
493
	if (*expanded == '/')
493
	if (*expanded == '/')
494
		return expanded;
494
		return expanded;
495
	if ((cwd = getcwd(NULL, 0)) == NULL)
495
	if ((cwd = getcwd(NULL, PATH_MAX)) == NULL)
496
		fatal("%s: getcwd: %s", __func__, strerror(errno));
496
		fatal("%s: getcwd: %s", __func__, strerror(errno));
497
	xasprintf(&ret, "%s/%s", cwd, expanded);
497
	xasprintf(&ret, "%s/%s", cwd, expanded);
498
	xfree(cwd);
498
	xfree(cwd);

Return to bug 1739