Lines Matching defs:mode
33 * set the security parameters of file to perms (mode or acl)
58 * set the security parameters of file to perms (mode or acl)
69 * - fixed mode displaying
98 * - reenabled recursion for setting a new mode or ACL
106 * - made Windows owner consistent with Linux owner when changing mode
472 unsigned int mode:12;
1531 printf(" mode : 0%03o\n",(int)pxdesc->mode);
1752 psecurdata->mode = 0;
2082 int mode;
2137 mode = linux_permissions(attr,isdir);
2138 printf("Interpreted Unix mode 0%03o\n",mode);
2284 int mode;
2339 mode = linux_permissions(attr,isdir);
2341 printf("Interpreted Unix mode 0%03o\n",mode);
2528 && (pxdesc1->mode == pxdesc2->mode)
2573 mode_t mode;
2602 mode = linux_permissions(attr,isdir);
2603 printf("Interpreted Unix mode 0%03o\n",mode);
3139 if ((pxdesc->mode != mixmode)
3142 printf("** Error in sample %d : mode %03o expected 0%03o\n",
3143 cnt,pxdesc->mode,mixmode);
3177 ERRMA, ERRPA, /* error converting mode or Posix ACL to NTFS */
3178 ERRAM, ERRAP, /* error converting NTFS to mode or Posix ACL */
3222 * Build a NTFS ACL from a mode, and
3224 * get the original mode back.
3227 if (!pxdesc || (pxdesc->mode != perm)) {
3230 gotback = pxdesc->mode;
3237 * mode, expecting to get the original mode back.
3330 printf("%lu ACLs built from mode, %lu ACE built, mean count %lu.%02lu\n",
3393 ERRMA, ERRPA, /* error converting mode or Posix ACL to NTFS */
3394 ERRAM, ERRAP, /* error converting NTFS to mode or Posix ACL */
3448 pxdesc->mode = 0;
3497 pxdesc->mode = (ownobj << 6) | (mask << 3) | wrld;
3826 printf(" mode 0%03o\n",pxdesc->mode);
3840 if (!ntfs_merge_mode_posix(oldpxdesc,pxdesc->mode))
3919 static BOOL setfull(const char *fullname, int mode, BOOL isdir)
3935 printf(" mode 0%03o\n",mode);
3949 newattr = ntfs_build_descr(mode,isdir,usid,gsid);
4120 int mode;
4211 mode = pxdesc->mode;
4213 mode = 0;
4215 mode = linux_permissions(attr,isdir);
4232 printf("# Interpreted Unix owner %d, group %d, mode 0%03o\n",
4233 (int)uid,(int)gid,mode);
4236 printf("Interpreted Unix owner %d, group %d, mode 0%03o\n",
4237 (int)uid,(int)gid,mode);
4255 psecurdata->mode = mode;
4274 printf("Security key : 0x%x mode %03o (already displayed)\n",
4275 securindex,psecurdata->mode);
4401 int mode;
4434 mode = pxdesc->mode;
4436 mode = 0;
4439 mode = linux_permissions(attr,isdir);
4444 mode = linux_permissions(attr,isdir);
4458 printf("Interpreted Unix owner %d, group %d, mode 0%03o\n",
4459 (int)uid,(int)gid,mode);
4461 printf("Interpreted Unix mode 0%03o (owner and group are unmapped)\n",
4462 mode);
4593 static BOOL recurseset(const char *path, int mode)
4606 setfull(path,mode,TRUE);
4613 recurseset(current->name,mode);
4619 setfull(path,mode,FALSE);
4659 static BOOL singleset(const char *path, int mode)
4668 setfull(path,mode,isdir);
4785 printf("Key 0x%x : %d files, mode 0%03o\n",
4787 securdata[i][j].mode);
5011 int mode;
5078 mode = linux_permissions(
5080 printf("Interpreted Unix mode 0%03o\n",mode);
5591 mode_t mode;
5644 mode = 0;
5660 mode = c - '0';
5796 mode = (mode << 3) + c - '0';
5821 /* compute the mode and tagsset */
5827 mode |= acl->ace[i].perms << 6;
5832 mode |= acl->ace[i].perms << 3;
5835 mode |= acl->ace[i].perms;
5839 mode = (mode & 07707)
5846 pxdesc->mode = mode;
5885 int mode;
5919 mode = 0;
5921 mode = (mode << 3) + (*p++) - '0';
5923 fprintf(stderr,"New mode should be given in octal\n");
5931 recurseset(base,mode);
5933 singleset(base,mode);
5981 fprintf(stderr," Notes: perms can be an octal mode or a Posix ACL description\n");
5983 fprintf(stderr," Notes: perms is an octal mode\n");
6018 fprintf(stderr," Notes: perms can be an octal mode or a Posix ACL description\n");
6020 fprintf(stderr," Notes: perms is an octal mode\n");