Lines Matching refs:name
37 chmod_or_fchmod (const char *name, int desc, mode_t mode) in chmod_or_fchmod() argument
42 return chmod (name, mode); in chmod_or_fchmod()
54 qset_acl (char const *name, int desc, mode_t mode) in qset_acl() argument
115 ret = acl_set_file (name, ACL_TYPE_ACCESS, acl); in qset_acl()
122 return chmod_or_fchmod (name, desc, mode); in qset_acl()
132 if (S_ISDIR (mode) && acl_delete_def_file (name)) in qset_acl()
139 return chmod_or_fchmod (name, desc, mode); in qset_acl()
170 acl = acl_get_file (name, ACL_TYPE_EXTENDED); in qset_acl()
181 ret = acl_set_file (name, ACL_TYPE_EXTENDED, acl); in qset_acl()
189 return chmod_or_fchmod (name, desc, mode); in qset_acl()
201 return chmod_or_fchmod (name, desc, mode); in qset_acl()
232 ret = (desc < 0 ? acl_set (name, aclp) : facl_set (desc, aclp)); in qset_acl()
238 return chmod_or_fchmod (name, desc, mode); in qset_acl()
247 return chmod_or_fchmod (name, desc, mode); in qset_acl()
274 count = acl (name, ACE_GETACLCNT, 0, NULL); in qset_acl()
288 : acl (name, ACE_GETACL, count, entries)) in qset_acl()
359 ret = acl (name, ACE_SETACL, in qset_acl()
364 return chmod_or_fchmod (name, desc, mode); in qset_acl()
387 ret = acl (name, SETACL, sizeof (entries) / sizeof (aclent_t), entries); in qset_acl()
391 return chmod_or_fchmod (name, desc, mode); in qset_acl()
400 return chmod_or_fchmod (name, desc, mode); in qset_acl()
415 ret = stat (name, &statbuf); in qset_acl()
432 ret = setacl (name, sizeof (entries) / sizeof (struct acl_entry), entries); in qset_acl()
436 return chmod_or_fchmod (name, desc, mode); in qset_acl()
444 return chmod_or_fchmod (name, desc, mode); in qset_acl()
466 ret = chacl (name, &u.a, u.a.acl_len); in qset_acl()
469 return chmod_or_fchmod (name, desc, mode); in qset_acl()
474 return chmod_or_fchmod (name, desc, mode); in qset_acl()
477 return chmod_or_fchmod (name, desc, mode); in qset_acl()
484 set_acl (char const *name, int desc, mode_t mode) in set_acl() argument
486 int r = qset_acl (name, desc, mode); in set_acl()
488 error (0, errno, _("setting permissions for %s"), quote (name)); in set_acl()