site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=sEgO3pzZ5lDISAk5jD5Cjn3lQkuXBhD9rfZ57mBz3ww=; b=a45Fx6nYWf8TQpPoX1ZnCVWrUvo5IuCJEeWHdXHed14uNGHmqyeSM5J7KNVyDkFiEk Gn6SpImibsEgR74nUphKNlXGcyg9gwWL4qvyUfOSoy/DXqlepK6TEk9qT6sGDFRFgFtD LRcI0apjPVcWwqVbOyYrxcyDmIiyg9Cp7Wffs= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=ikH4SrAaKk/TpnuRGS7h95ULgF/pBOaEfl+9F3nSEctBzv7jp/ggqZE7I7lp+q71dU lbyJXw6lIY7Wd5X0k3REa1IIqbqD3EQOxQnMFmdmUjQnwzaYwq+H4kd8VShGDVHhmlKF smDfBghhFTkwqmoL5VaFi4h2kHOQmyqyON2to= On Jan 5, 2009, at 10:45 , John Michael Zorko wrote: Hello, all ... HTH, Jason _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I'm exploring the acl_* POSIX APIs on Leopard (and assuming the same code will work on TIger, please correct me if i'm wrong), and so far, all I get from acl_get_file() is error 22, "invalid argument". Here's my (very short) test, can someone tell me what i'm doing wrong? Two quick things about this... first of all, the only ACL_TYPE that is supported is ACL_TYPE_EXTENDED, so you have to use that on darwin. Second, just be aware that if there are no ACL entries actually on a file, you're going to get ENOENT returned, which can be quite misleading as the file actually does exist but simply doesn't have an ACL record associated with it :) I would suggest using acl_get_fd(3) instead. This way, you will know if a file doesn't exist because the call to open(2) will fail, so if acl_get_fd(3) fails and errno is ENOENT then you know that it just doesn't have any ACL record associated with it. Also, acl_get_fd(3) doesn't take an acl_type_t so it's less confusing, the only parameter is the file descriptor. This email sent to site_archiver@lists.apple.com
participants (1)
-
Jason Coco