mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fix nil path handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18858 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6e4c4de818
commit
bd19ee1a68
3 changed files with 35 additions and 11 deletions
|
@ -151,7 +151,9 @@ NSUserName(void)
|
|||
format: @"Unable to determine current user name"];
|
||||
}
|
||||
#else
|
||||
static int olduid = 0;
|
||||
/* Set olduid to some invalid uid that we could never start off running
|
||||
as. */
|
||||
static int olduid = -1;
|
||||
#ifdef HAVE_GETEUID
|
||||
int uid = geteuid();
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue