remove pw_stayopen
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 29 Dec 1988 06:24:55 +0000 (22:24 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 29 Dec 1988 06:24:55 +0000 (22:24 -0800)
SCCS-vsn: bin/ls/ls.c 5.10

usr/src/bin/ls/ls.c

index 1bf2abb..6ec7350 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)ls.c       5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)ls.c       5.10 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -627,7 +627,6 @@ char *
 getname(uid)
        uid_t uid;
 {
 getname(uid)
        uid_t uid;
 {
-       extern int _pw_stayopen;
        static struct ncache {
                uid_t   uid;
                char    name[NMAX+1];
        static struct ncache {
                uid_t   uid;
                char    name[NMAX+1];
@@ -635,7 +634,6 @@ getname(uid)
        register struct passwd *pw;
        register struct ncache *cp;
 
        register struct passwd *pw;
        register struct ncache *cp;
 
-       _pw_stayopen = 1;
        cp = c_uid + (uid & CAMASK);
        if (cp->uid == uid && *cp->name)
                return(cp->name);
        cp = c_uid + (uid & CAMASK);
        if (cp->uid == uid && *cp->name)
                return(cp->name);