/coreutils/src/ |
D | whoami.c | 59 uid_t uid; in main() local 81 uid = geteuid (); in main() 82 pw = uid == NO_UID && errno ? nullptr : getpwuid (uid); in main() 85 (unsigned long int) uid); in main()
|
D | chown-core.c | 80 uid_to_str (uid_t uid) in uid_to_str() argument 83 return xstrdup (TYPE_SIGNED (uid_t) ? imaxtostr (uid, buf) in uid_to_str() 84 : umaxtostr (uid, buf)); in uid_to_str() 114 uid_to_name (uid_t uid) in uid_to_name() argument 116 struct passwd *pwd = getpwuid (uid); in uid_to_name() 117 return pwd ? xstrdup (pwd->pw_name) : uid_to_str (uid); in uid_to_name() 231 uid_t uid, gid_t gid, in restricted_chown() argument 264 if (fchown (fd, uid, gid) == 0) in restricted_chown() 284 uid_t uid, gid_t gid, in change_file_owner() argument 418 ok = (lchownat (fts->fts_cwd_fd, file, uid, gid) == 0); in change_file_owner() [all …]
|
D | chroot.c | 43 static inline bool uid_unset (uid_t uid) { return uid == (uid_t) -1; } in uid_unset() argument 229 uid_t uid = -1; in main() local 301 ignore_value (parse_user_spec (userspec, &uid, &gid, nullptr, nullptr)); in main() 305 if (uid_set (uid) && (! groups || gid_unset (gid))) in main() 308 if ((pwd = getpwuid (uid))) in main() 357 char const *err = parse_user_spec_warn (userspec, &uid, &gid, in main() 365 if (uid_set (uid) && (! groups || gid_unset (gid))) in main() 368 if ((pwd = getpwuid (uid))) in main() 377 _("no group specified for unknown uid: %d"), (int) uid); in main() 413 if ((uid_set (uid) || groups) && setgroups (n_gids, gids) != 0) in main() [all …]
|
D | id.c | 69 static void print_user (uid_t uid); 321 uidtostr_ptr (uid_t const *uid) in uidtostr_ptr() argument 324 return umaxtostr (*uid, buf); in uidtostr_ptr() 331 print_user (uid_t uid) in print_user() argument 337 pwd = getpwuid (uid); in print_user() 341 uidtostr (uid)); in print_user() 346 char *s = pwd ? pwd->pw_name : uidtostr (uid); in print_user()
|
D | chown.c | 159 uid_t uid = -1; /* Specified uid; -1 if not to be changed. */ in main() local 292 uid = ref_stats.st_uid; in main() 300 char const *e = parse_user_spec_warn (argv[optind], &uid, &gid, in main() 326 uid, gid, in main()
|
D | chown-core.h | 87 uid_t uid, gid_t gid,
|
D | copy.c | 898 fchown_or_lchown (int desc, int dirfd, char const *name, uid_t uid, gid_t gid) in fchown_or_lchown() argument 902 return fchown (desc, uid, gid); in fchown_or_lchown() 904 return lchownat (dirfd, name, uid, gid); in fchown_or_lchown() 925 uid_t uid = src_sb->st_uid; in set_owner() local 953 if (fchown_or_lchown (dest_desc, dst_dirfd, dst_relname, uid, gid) == 0) in set_owner()
|
/coreutils/tests/rm/ |
D | unreadable.pl | 29 my $uid = $<; 39 {EXIT => $uid == 0 ? 0 : 1}, 40 {ERR => $uid == 0 ? ''
|
D | fail-eperm.xpl | 24 my $uid = $<; 26 $uid == 0
|
/coreutils/tests/id/ |
D | uid.sh | 21 uid=$(id -u) || fail=1 35 id $mode $uid > uid_out || fail=1 # lookup name "$uid" before id "$uid" 38 id $mode +$uid > uid_out || fail=1 # lookup only id "$uid"
|
/coreutils/scripts/build-older-versions/ |
D | coreutils-5.0-on-glibc-2.28.diff | 47 /* Do the same thing access(2) does, but use the effective uid and gid. */ 54 static uid_t uid, euid;
|
/coreutils/tests/ |
D | local.mk | 126 tests/ls/nameless-uid.sh \ 591 tests/id/uid.sh \
|
/coreutils/ |
D | NEWS | 412 'id xyz' now uses the name 'xyz' to determine groups, instead of xyz's uid. 4801 without changing the uid or gid, instead of reporting an error.
|
/coreutils/doc/ |
D | coreutils.texi | 8061 @itemx --numeric-uid-gid 8063 @opindex --numeric-uid-gid 8064 @cindex numeric uid and gid
|