bugGNUstep - Bugs: bug #14965, NSOpenStepRootDirectory()...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14965: NSOpenStepRootDirectory() returning wrong result

Submitted by:  Gregory John Casamento <gcasa>
Submitted on:  Sun 13 Nov 2005 07:14:16 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 13 Nov 2005 06:02:50 PM UTC, comment #2:

Probably the reason it was deprecated is that a very long time ago, GNUstep had a 'GNUSTEP_ROOT' directory (by default '/usr/GNUstep' on GNU/Linux) and GNUSTEP_SYSTEM_ROOT, GNUSTEP_LOCAL_ROOT, GNUSTEP_NETWORK_ROOT etc. where situated as subdirectory of that one (by default '/usr/GNUstep/System', '/usr/GNUstep/Local' etc).

That long time ago I believe NSOpenStepRootDirectory () was expected to return $GNUSTEP_ROOT, ie '/usr/GNUstep'.

I certainly agree with the new trend that it should return '/' and I'm very happy to see that our efforts for removing GNUSTEP_ROOT (which I've finally manage to entirely remove from gnustep-make about a month ago) are successfull and it's now not only deprecated but entirely forgotten :-)

GNUSTEP_ROOT would provide nothing useful in terms of API or functionality and it was a problem in terms of filesystem flexibility, so it's quite a good change that we now longer have it! :-)

Thanks

Nicola Pero <nico>
Project Member
Sun 13 Nov 2005 08:55:06 AM UTC, comment #1:

The root directory on a unix system is '/' ... so that behavior is correct. This function should return the root directory of the system (behaving like MacOS-X, OPENSTEP, and libFoundation), not the directory corresponding to NSSystemDomainMask.

I did notice a bug in the mingw32 implementation ... it was still using the old '~c' mangled path format we scrapped several months ago, so I updated it to use 'C:\'

I also undeprecated the function and clarified (I hope) the documentation ... as the only reason I could think of for it having been deprecated eighteen months ago was that it tends to get misused by people trying to build paths to GNUstep resources (which should be done using NSSearchPathForDirectoriesInDomains()). I realise that the documentation already explicitly warned you not to use it that way, but hopefully it's even clearer now.

Richard Frith-Macdonald <CaS>
Project Member
Sun 13 Nov 2005 07:14:16 AM UTC, original submission:

On my system /usr/GNUstep is the system root, but the function NSOpenStepRootDirectory() returns /.

Gregory John Casamento <gcasa>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 13 Nov 2005 08:55:06 AM UTCCaSOpen/ClosedOpen=>Closed
Sun 13 Nov 2005 08:55:05 AM UTCCaSStatusNone=>Invalid

Back to the top


Powered by Savane 3.1-cleanup1