Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/libhack Modified pwmatchline to return the val...
details: https://anonhg.NetBSD.org/src/rev/852c2bce90ca
branches: trunk
changeset: 526887:852c2bce90ca
user: elric <elric%NetBSD.org@localhost>
date: Mon May 13 06:38:14 2002 +0000
description:
Modified pwmatchline to return the value to pw_class. This is not
strictly necessary for the install floppy, but it enables one to
build a rescue floppy with ssh(1) on it. ssh dereferences pw->pw_class
and will therefore core dump if it is not set to something.
Reviewed By: simonb%NetBSD.ORG@localhost
diffstat:
distrib/utils/libhack/getpwent.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 977ba307dd46 -r 852c2bce90ca distrib/utils/libhack/getpwent.c
--- a/distrib/utils/libhack/getpwent.c Mon May 13 06:35:47 2002 +0000
+++ b/distrib/utils/libhack/getpwent.c Mon May 13 06:38:14 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getpwent.c,v 1.5 2002/02/02 15:57:54 lukem Exp $ */
+/* $NetBSD: getpwent.c,v 1.6 2002/05/13 06:38:14 elric Exp $ */
/*
* Copyright (c) 1987, 1988, 1989, 1993, 1994, 1995
@@ -212,7 +212,7 @@
return 0;
_pw_passwd.pw_gid = (gid_t)id;
- if (!(ep = strsep(&bp, ":"))) /* class */
+ if (!(_pw_passwd.pw_class = strsep(&bp, ":"))) /* class */
return 0;
if (!(ep = strsep(&bp, ":"))) /* change */
return 0;
Home |
Main Index |
Thread Index |
Old Index