summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1997-01-07 13:32:04 +0000
committerDavid Nugent <davidn@FreeBSD.org>1997-01-07 13:32:04 +0000
commitfb74c4009f9376ce3b2abf13aa85d618424f0c99 (patch)
treecd739c76dd287532808688266f89097cb57e37b4 /libutil
parentff78d6cea19ba392d6c389ad3a16f10e3f245fb5 (diff)
downloadpw-darwin-fb74c4009f9376ce3b2abf13aa85d618424f0c99.tar.gz
pw-darwin-fb74c4009f9376ce3b2abf13aa85d618424f0c99.tar.zst
pw-darwin-fb74c4009f9376ce3b2abf13aa85d618424f0c99.zip
Commit the right version this time. :-)
Diffstat (limited to 'libutil')
-rw-r--r--libutil/login_cap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libutil/login_cap.c b/libutil/login_cap.c
index 8f3c56d..b4566cc 100644
--- a/libutil/login_cap.c
+++ b/libutil/login_cap.c
@@ -21,7 +21,7 @@
*
* Low-level routines relating to the user capabilities database
*
- * $Id: login_cap.c,v 1.1 1997/01/04 16:50:02 davidn Exp $
+ * $Id: login_cap.c,v 1.2 1997/01/07 13:29:21 davidn Exp $
*/
#include <stdio.h>
@@ -216,7 +216,7 @@ login_getclass(const struct passwd *pwd)
{
const char * class = NULL;
if (pwd == NULL) {
- if ((class = pwd->pw_class) == NULL) || *class == '\0')
+ if ((class = pwd->pw_class) == NULL || *class == '\0')
class = (pwd->pw_uid == 0) ? "root" : NULL;
}
return login_getclassbyname(class, 0);