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:
François Revol 2008-01-11 13:52:48 +00:00
parent 38196dea30
commit c6b3f26049
2 changed files with 10 additions and 10 deletions

View File

@ -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();
}

View File

@ -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)
{