• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Copy Folder Attributes of /dev
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Copy Folder Attributes of /dev
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: performSelector:onThread:withObject:waitUntilDone:' not found in protocol(s)
  • Next by Date: NSLayerStack/NSArrayController/NSButton action puzzle
  • Previous by thread: Re: performSelector:onThread:withObject:waitUntilDone:' not found in protocol(s)
  • Next by thread: Re: Copy Folder Attributes of /dev
  • Index(es):
    • Date
    • Thread