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
<[EMAIL PROTECTED]>
http://nagual.pp.ru/~ache/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to