Hi, all,
About mac vm 3.8.14beta6U and 3.8.14beta7U, I have trouble. SecurityManager default primUntrustedUserDirectory returns a path name, '/Users/tetha/Library/Preferences/Internet' But, I believe it should have 'My Squeak' as the last path component. When I setup the value of SqueakBrowserUnTrustedDirectory entry in Info.plist as ~/Library/Preferences/Squeak/Internet/My Squeak/aaaaaaaa (add a dummy component aaaaaaaa) then returns '/Users/tetha/Library/Preferences/Internet/My Squeak' I use MacOSX 10.4.8 on PPC box. Best regards, -- Tetsuya HAYASHI <[hidden email]>, <[hidden email]> |
Ah, mmm a bug, but if you try ~/Library/Preferences/Squeak/Internet/
My Squeak/aaaaaaaa/ what happens? Perhaps the code (I've not looked yet) assumes the aaaaaaaa is a file name and then resolves to the directory? I'll note the default should be <key>SqueakBrowserUnTrustedDirectory</key> <string>~/Library/Preferences/Squeak/Internet/My Squeak/</string> I invoke (NSString*) stringByExpandingTildeInPath on the string, but the apple documentation is not clear, it only says: A new string made by expanding the initial component of the receiver, if it begins with “~” or “~user”, to its full path value. Returns a new string matching the receiver if the receiver’s initial component can’t be expanded. On Jan 17, 2007, at 6:56 PM, Tetsuya HAYASHI wrote: > Hi, all, > > About mac vm 3.8.14beta6U and 3.8.14beta7U, I have trouble. > > SecurityManager default primUntrustedUserDirectory > > returns a path name, > > '/Users/tetha/Library/Preferences/Internet' > > But, I believe it should have 'My Squeak' as the last path component. > When I setup the value of SqueakBrowserUnTrustedDirectory entry in > Info.plist as > > ~/Library/Preferences/Squeak/Internet/My Squeak/aaaaaaaa > > (add a dummy component aaaaaaaa) > then returns > > '/Users/tetha/Library/Preferences/Internet/My Squeak' > > I use MacOSX 10.4.8 on PPC box. > > Best regards, > -- > Tetsuya HAYASHI <[hidden email]>, <[hidden email]> > > -- ======================================================================== === John M. McIntosh <[hidden email]> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== === |
Once again,
On 2007/01/18, at 19:20, Tetsuya HAYASHI wrote: > 1) global variable gSqueakUntrustedDirectoryName is set as > '/Users/tetha/Library/Preferences/Internet/My Squeak' > it lacks the last delimiter char '/'. > > 2) ioInitSecurity() in SecurityPlugin module the right module name is sqMacSecurity.c, sorry. > strcpy untrustedUserDirectory from gSqueakUntrustedDirectoryName > but, after this, > > 3) fixPath() > this functions split the last component 'My Squeak', because pathname lacks the last delimiter, so it is fixed as '/Users/tetha/Library/Preferences/Internet' fixPath() is necessary in this case ? it is already fixed by stringByExpandingTildeInPath. -- Tetsuya HAYASHI [hidden email], [hidden email] |
As you noticed the fix is to remove the fixPath() for
untrustedUserDirectory, I"ll make a new VM later on the weekend. On Jan 20, 2007, at 4:28 AM, Tetsuya HAYASHI wrote: > Once again, > > On 2007/01/18, at 19:20, Tetsuya HAYASHI wrote: > >> 1) global variable gSqueakUntrustedDirectoryName is set as >> '/Users/tetha/Library/Preferences/Internet/My Squeak' >> it lacks the last delimiter char '/'. >> >> 2) ioInitSecurity() in SecurityPlugin module > > the right module name is sqMacSecurity.c, sorry. > >> strcpy untrustedUserDirectory from gSqueakUntrustedDirectoryName >> but, after this, >> >> 3) fixPath() >> this functions split the last component 'My Squeak', because >> pathname lacks the last delimiter, so it is fixed as '/Users/tetha/ >> Library/Preferences/Internet' > > fixPath() is necessary in this case ? > it is already fixed by stringByExpandingTildeInPath. > > -- > Tetsuya HAYASHI > [hidden email], [hidden email] > > -- ======================================================================== === John M. McIntosh <[hidden email]> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== === |
Thanks !!
On 2007/01/21, at 3:23, John M McIntosh wrote: > As you noticed the fix is to remove the fixPath() for untrustedUserDirectory, I"ll make a new VM later on the weekend. > > On Jan 20, 2007, at 4:28 AM, Tetsuya HAYASHI wrote: > >> Once again, >> >> On 2007/01/18, at 19:20, Tetsuya HAYASHI wrote: >> >>> 1) global variable gSqueakUntrustedDirectoryName is set as >>> '/Users/tetha/Library/Preferences/Internet/My Squeak' >>> it lacks the last delimiter char '/'. >>> >>> 2) ioInitSecurity() in SecurityPlugin module >> >> the right module name is sqMacSecurity.c, sorry. >> >>> strcpy untrustedUserDirectory from gSqueakUntrustedDirectoryName >>> but, after this, >>> >>> 3) fixPath() >>> this functions split the last component 'My Squeak', because pathname lacks the last delimiter, so it is fixed as '/Users/tetha/Library/Preferences/Internet' >> >> fixPath() is necessary in this case ? >> it is already fixed by stringByExpandingTildeInPath. >> >> -- >> Tetsuya HAYASHI >> [hidden email], [hidden email] >> >> > > -- > =========================================================================== > John M. McIntosh <[hidden email]> > Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com > =========================================================================== > > > > > |
Free forum by Nabble | Edit this page |