bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make_services coredumping when it runs with no defaults


From: Adam Fedor
Subject: Re: make_services coredumping when it runs with no defaults
Date: Thu, 18 Mar 2004 15:22:32 -0700


On Wednesday, March 17, 2004, at 06:53 AM, Pablo Di Noto wrote:
I noticed that make_services segfaults and coredumps when it is run
without a defaults database. I am sourcing
/usr/GNUstep/System/Makefiles/GNUstep.sh from my global bashrc file.
Everything works ok with my user, but and when switch to root via


I think this might be due to two problems. The first is that NSUserName() doesn't work correctly when the user is root (uid=0), returning a nil username. The second is -[NSFileManager -createDirectoryAtPath:attributes:] doesn't check for a nil path. This patch fixes both.

Attachment: rootuser.patch
Description: Binary data



reply via email to

[Prev in Thread] Current Thread [Next in Thread]