+2008-06-08 Bruno Haible <bruno@clisp.org>
+
+ * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
+
2008-06-08 Jim Meyering <meyering@redhat.com>
* modules/acl (Maintainer): Add Bruno Haible.
acl_free (acl);
if (ACL_NOT_WELL_SUPPORTED (errno))
+ return chmod_or_fchmod (name, desc, mode);
+ else
{
- if (chmod_or_fchmod (name, desc, mode) != 0)
- saved_errno = errno;
- else
- return 0;
+ errno = saved_errno;
+ return -1;
}
- errno = saved_errno;
- return -1;
}
else
acl_free (acl);
{
/* We did not call chmod so far, so the special bits have not yet
been set. */
-
- if (chmod_or_fchmod (name, desc, mode))
- return -1;
+ return chmod_or_fchmod (name, desc, mode);
}
return 0;
acl_free (acl);
if (ACL_NOT_WELL_SUPPORTED (saved_errno))
+ return chmod_or_fchmod (name, desc, mode);
+ else
{
- if (chmod_or_fchmod (name, desc, mode) != 0)
- saved_errno = errno;
- else
- return 0;
+ errno = saved_errno;
+ return -1;
}
- errno = saved_errno;
- return -1;
}
acl_free (acl);
}
}
+ /* Since !MODE_INSIDE_ACL, we have to call chmod explicitly. */
return chmod_or_fchmod (name, desc, mode);
# endif