From owner-freebsd-current Sun Feb 27 6:39:49 2000 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 4CBFC37B600; Sun, 27 Feb 2000 06:39:45 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.9.3/8.9.3) id RAA80421; Sun, 27 Feb 2000 17:39:43 +0300 (MSK) (envelope-from ache) Date: Sun, 27 Feb 2000 17:39:43 +0300 From: "Andrey A. Chernov" To: jkh@freebsd.org Cc: current@freebsd.org Subject: login.c patch Message-ID: <20000227173942.A80404@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Organization: Biomechanoid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 http://nagual.pp.ru/~ache/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message