Date: Sun, 27 Feb 2000 17:39:43 +0300 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: jkh@freebsd.org Cc: current@freebsd.org Subject: login.c patch Message-ID: <20000227173942.A80404@nagual.pp.ru>
next in thread | raw e-mail | index | archive | help
Test condition is always true which is not supposed. Please approve this patch. --- login.c.bak Sun Feb 20 22:52:16 2000 +++ login.c Sun Feb 27 17:35:35 2000 @@ -382,9 +382,9 @@ refused("Home directory not available", "HOMEDIR", 1); if (chdir("/") < 0) refused("Cannot find root directory", "ROOTDIR", 1); - pwd->pw_dir = "/"; if (!quietlog || *pwd->pw_dir) printf("No home directory.\nLogging in with home = \"/\".\n"); + pwd->pw_dir = "/"; } (void)seteuid(euid); (void)setegid(egid); -- Andrey A. Chernov <ache@nagual.pp.ru> http://nagual.pp.ru/~ache/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000227173942.A80404>