From owner-freebsd-current Sun Feb 27 11: 2:12 2000 Delivered-To: freebsd-current@freebsd.org Received: from zippy.cdrom.com (zippy.cdrom.com [204.216.27.228]) by hub.freebsd.org (Postfix) with ESMTP id 89DD937B53B; Sun, 27 Feb 2000 11:02:10 -0800 (PST) (envelope-from jkh@zippy.cdrom.com) Received: from zippy.cdrom.com (jkh@localhost [127.0.0.1]) by zippy.cdrom.com (8.9.3/8.9.3) with ESMTP id LAA69941; Sun, 27 Feb 2000 11:01:50 -0800 (PST) (envelope-from jkh@zippy.cdrom.com) To: "Andrey A. Chernov" Cc: jkh@freebsd.org, current@freebsd.org Subject: Re: login.c patch In-reply-to: Your message of "Sun, 27 Feb 2000 17:39:43 +0300." <20000227173942.A80404@nagual.pp.ru> Date: Sun, 27 Feb 2000 11:01:50 -0800 Message-ID: <69930.951678110@zippy.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG approved > 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