site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:user-agent:date:subject:from :to:message-id:thread-topic:thread-index:mime-version:content-type :content-transfer-encoding; bh=DvyadfcGeYlQph7rwKrlsAWpvOEPZF3AenDD3l27LZw=; b=X2h3V9pHk8LwCtnV2q7Gc4RNsXs7G8I5za0xXKlAHqZ3gN9Fo+21QlRXGjF8N+VYCl MRXBVgu7htBc5E/GNmsGrG/t+gRM8Qd9c7FocjtgjMaCERtmy2wApXdxEsTtlso+zSlN 4d5+8W0kusNuZEraqSkasvlSZ+pCG4LoCpT9A= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:mime-version:content-type:content-transfer-encoding; b=hUA/6f9rkinwVnR/zskCXsIbXiOWhbjqystGumS59w+qguLWnp1xLdWyucv2ynjbn1 oZSgtGZAXfvWC/YBNPW5sOBl+Y+zbA2lz6Xd/IUykjJmIC1NGmFOIZ8V+5xN+ZKhFfAx CwYt9e6pYeejHlu+byneT8l3PBBNDo8Dv9jOw= Thread-index: AcrRxGraLY3fB3jnEkaOKi/mwWxBHA== Thread-topic: Copy Folder Attributes of /dev User-agent: Microsoft-Entourage/12.23.0.091001 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 (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/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com
participants (1)
-
gMail.com