projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af6ca8e
)
acl: Remove unused code in last commit.
author
Bruno Haible
<bruno@clisp.org>
Mon, 5 Sep 2011 00:38:24 +0000
(
02:38
+0200)
committer
Bruno Haible
<bruno@clisp.org>
Mon, 5 Sep 2011 00:38:49 +0000
(
02:38
+0200)
lib/set-mode-acl.c
patch
|
blob
|
history
diff --git
a/lib/set-mode-acl.c
b/lib/set-mode-acl.c
index
5e99440
..
be5592b
100644
(file)
--- 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 */