summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-01-07 13:32:04 +0000
committerdavidn <davidn@FreeBSD.org>1997-01-07 13:32:04 +0000
commit08c587d89fe20009871cb0661db9a6328c853a51 (patch)
treebae44075448067693b5e9e84a299e77ac123f27e /lib/libutil
parent962c4b892bc6055ab9d317c437b6016247f035f9 (diff)
downloadFreeBSD-src-08c587d89fe20009871cb0661db9a6328c853a51.zip
FreeBSD-src-08c587d89fe20009871cb0661db9a6328c853a51.tar.gz
Commit the right version this time. :-)
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/login_cap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/login_cap.c b/lib/libutil/login_cap.c
index 8f3c56d..b4566cc 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);
OpenPOWER on IntegriCloud