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:
fedor 2004-03-19 18:34:46 +00:00
parent 6e4c4de818
commit bd19ee1a68
3 changed files with 35 additions and 11 deletions

View file

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