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

(-)session.c (-1 / +2 lines)
Lines 1773-1779 Link Here
1773
#ifdef HAVE_LOGIN_CAP
1773
#ifdef HAVE_LOGIN_CAP
1774
		r = login_getcapbool(lc, "requirehome", 0);
1774
		r = login_getcapbool(lc, "requirehome", 0);
1775
#endif
1775
#endif
1776
		if (r || options.chroot_directory == NULL)
1776
		if (r || options.chroot_directory == NULL ||
1777
		    strcasecmp(options.chroot_directory, "none") == 0)
1777
			fprintf(stderr, "Could not chdir to home "
1778
			fprintf(stderr, "Could not chdir to home "
1778
			    "directory %s: %s\n", pw->pw_dir,
1779
			    "directory %s: %s\n", pw->pw_dir,
1779
			    strerror(errno));
1780
			    strerror(errno));

Return to bug 1564