mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Commit the right version this time. :-)
This commit is contained in:
parent
2dc7d862d8
commit
65fa0ae191
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21399
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user