Copy Folder Attributes of /dev
Copy Folder Attributes of /dev
- Subject: Copy Folder Attributes of /dev
- From: "gMail.com" <email@hidden>
- Date: Thu, 01 Apr 2010 17:54:47 +0000
- Thread-topic: Copy Folder Attributes of /dev
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?
Regards
Leonardo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden