cuserid also goes there...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23396 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
38196dea30
commit
c6b3f26049
@ -36,3 +36,13 @@ int getlogin_r(char *name, size_t nameSize)
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
|
||||
char *
|
||||
cuserid(char *s)
|
||||
{
|
||||
if (s != NULL && getlogin_r(s, L_cuserid))
|
||||
return s;
|
||||
|
||||
return getlogin();
|
||||
}
|
||||
|
||||
|
@ -51,16 +51,6 @@ getuid(void)
|
||||
}
|
||||
|
||||
|
||||
char *
|
||||
cuserid(char *s)
|
||||
{
|
||||
if (s != NULL && getlogin_r(s, L_cuserid))
|
||||
return s;
|
||||
|
||||
return getlogin();
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
setgid(gid_t gid)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user