Lines Matching refs:acls

65     tlm_acls_t *acls);
78 tlm_acls_t *acls,
150 dtree_push(cstack_t *stp, char *nmp, tlm_acls_t *acls)
156 if (!sp || !nmp || !acls) {
169 (void) memcpy(&sp->se_acls, acls, sizeof (*acls));
170 (void) memset(acls, 0, sizeof (tlm_acls_t));
260 tlm_acls_t *acls; /* file access info */
310 acls = ndmp_malloc(sizeof (tlm_acls_t));
313 name == NULL || acls == NULL || stp == NULL || parentlnk == NULL ||
321 free(acls);
333 (void) memset(acls, 0, sizeof (tlm_acls_t));
335 acls->acl_overwrite = TRUE;
338 acls->acl_update = TRUE;
458 * information of the acls must not be over-written
467 acls->acl_attr.st_mode =
469 acls->acl_attr.st_size =
471 acls->acl_attr.st_uid =
473 acls->acl_attr.st_gid =
475 acls->acl_attr.st_mtime =
477 (void) strlcpy(acls->uname,
479 sizeof (acls->uname));
480 (void) strlcpy(acls->gname,
482 sizeof (acls->gname));
492 acls->acl_attr.st_size, acls->acl_attr.st_mode,
493 acls->acl_attr.st_uid, acls->acl_attr.st_gid,
494 acls->acl_attr.st_mtime);
565 acls, job_stats);
703 huge_size, acls, want_this_file, local_commands,
800 file_name, file_size, acls, local_commands,
816 acls, job_stats);
856 (void) dtree_push(stp, nmp, acls);
877 tar_hdr->th_linkflag, nmp, acls,
920 size_left = load_acl_info(lib, drv, file_size, acls,
954 free(acls);
1134 tlm_acls_t *acls,
1175 } else if (acls->acl_overwrite) {
1178 } else if (acls->acl_update) {
1179 if (attr.st_mtime < acls->acl_attr.st_mtime) {
1273 set_acl(real_name, acls);
1338 tlm_acls_t *acls,
1404 acls->acl_attr.st_mode = oct_atoi(tar_hdr->th_mode);
1405 acls->acl_attr.st_size = oct_atoi(tar_hdr->th_size);
1406 acls->acl_attr.st_uid = oct_atoi(tar_hdr->th_uid);
1407 acls->acl_attr.st_gid = oct_atoi(tar_hdr->th_gid);
1408 acls->acl_attr.st_mtime = oct_atoi(tar_hdr->th_mtime);
1411 xattrname, acls->acl_attr.st_size, acls->acl_attr.st_mode,
1412 acls->acl_attr.st_uid, acls->acl_attr.st_gid);
1414 size = acls->acl_attr.st_size;
1463 set_xattr(*fp, acls->acl_attr);
1839 tlm_acls_t *acls, tlm_job_stats_t *job_stats)
1861 set_acl(name_new, acls);
1871 create_sym_link(char *dst, char *target, tlm_acls_t *acls,
1880 st = &acls->acl_attr;
1888 set_acl(dst, acls);
1898 create_special(char flag, char *name, tlm_acls_t *acls, int major, int minor,
1934 set_acl(name, acls);
1946 tlm_acls_t *acls,
1959 (void) memset(acls, 0, sizeof (tlm_acls_t));
1962 bp = ((char *)&acls->acl_info) + *acl_spot;
1966 (void) memset(acls, 0, sizeof (tlm_acls_t));
1971 acls->acl_non_trivial = TRUE;
2036 set_attr(char *name, tlm_acls_t *acls)
2047 if (!name || !acls)
2050 st = &acls->acl_attr;
2052 "mode %o", name, st->st_uid, st->st_gid, acls->uname, acls->gname,
2056 if ((pwd = getpwnam(acls->uname)) != NULL) {
2063 if ((grp = getgrnam(acls->gname)) != NULL) {
2113 set_acl(char *name, tlm_acls_t *acls)
2120 if (acls != 0) {
2123 set_attr(name, acls);
2125 if (!acls->acl_non_trivial) {
2126 (void) memset(acls, 0, sizeof (tlm_acls_t));
2131 erc = acl_fromtext(acls->acl_info.attr_info, &aclp);
2144 (void) memset(acls, 0, sizeof (tlm_acls_t));