From: Bruno Haible Date: Mon, 5 Sep 2011 00:38:24 +0000 (+0200) Subject: acl: Remove unused code in last commit. X-Git-Tag: v0.1~1959 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=5b89c4d735274de30f40daaad3b4ba1bd1d2d82b;p=gnulib.git acl: Remove unused code in last commit. --- diff --git a/lib/set-mode-acl.c b/lib/set-mode-acl.c index 5e994406b..be5592b38 100644 --- a/lib/set-mode-acl.c +++ b/lib/set-mode-acl.c @@ -335,14 +335,6 @@ qset_acl (char const *name, int desc, mode_t mode) { /* Running on Solaris 10 (newer version) or Solaris 11. The details here were found through "/bin/ls -lvd somefiles". */ - struct stat statbuf; - int dir; - - if ((desc != -1 ? fstat (desc, &statbuf) : stat (name, &statbuf)) >= 0) - dir = S_ISDIR (statbuf.st_mode); - else - dir = 0; - entries[0].a_type = NEW_ACE_ACCESS_DENIED_ACE_TYPE; entries[0].a_flags = NEW_ACE_OWNER; entries[0].a_who = 0; /* irrelevant */