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

Group
 
 

bug #14965: NSOpenStepRootDirectory() returning wrong result

Submitter:  Gregory John Casamento <gcasa>
Submitted:  Sun 13 Nov 2005 07:14:16 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-11-13 CaS Open/ClosedOpen Closed
2005-11-13 CaS StatusNone Invalid

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code