Le 1 avr. 2010 à 19:54, gMail.com a écrit : > Hi, > I want to copy all the folder's attributes, so instead of using the Cocoa > API I have to use FSSetCatalogInfo. This requires an FSRef, so I use > FSPathMakeRef or FSPathMakeRefWithOptions, e.g. > > err = FSPathMakeRefWithOptions((UInt8*)cSrcPath, > kFSPathMakeRefDoNotFollowLeafSymlink, &srcRef, NULL); > > But every time my source folder is @"/dev", I get an error -36 (I/O error) > even if the effective user returned by getegid() is 0 (root user). > > I have verified and lstat returns 0 (noErr) on this folder. > Also, from the Terminal > ls -laf / > drwxrwxr-t 36 root admin 1292 Mar 31 17:42 . > drwxrwxr-t 36 root admin 1292 Mar 31 17:42 .. > drwxr-xr-x@ 39 root wheel 1326 Mar 29 20:48 bin > dr-xr-xr-x 3 root wheel 4352 Apr 1 17:04 dev > > If I check the /bin folder, it works well. > I have no idea of what's happening here. Any advise?
"/dev" is not a simple folder, it is a FS mount point. > mount … devfs on /dev (devfs, local, nobrowse) … Don't know why creating a FSRef failed though but trying to copy it and its properties is useless. -- Jean-Daniel _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com