diff options
| author | David Nugent <davidn@FreeBSD.org> | 1997-01-07 13:32:04 +0000 |
|---|---|---|
| committer | David Nugent <davidn@FreeBSD.org> | 1997-01-07 13:32:04 +0000 |
| commit | 65fa0ae191ed1ba1130b1036b0d6c60b821fc491 (patch) | |
| tree | bae44075448067693b5e9e84a299e77ac123f27e /lib/libutil/login_cap.c | |
| parent | 2dc7d862d88a4780e770c118851f465e4f1b15bf (diff) | |
Notes
Diffstat (limited to 'lib/libutil/login_cap.c')
| -rw-r--r-- | lib/libutil/login_cap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/login_cap.c b/lib/libutil/login_cap.c index 8f3c56d36d5f..b4566ccf6ec9 100644 --- a/lib/libutil/login_cap.c +++ b/lib/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); |
