search for: stmode

Displaying 1 result from an estimated 1 matches for "stmode".

Did you mean: st_mode
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Use test_access from NetBSD when faccessat is unavailable
...#39;-w' if + * (euid==uid&&egid==gid), but uses st_mode for '-x' iff running as root. + * i.e. it does strictly conform to 1003.1-2001 (and presumably 1003.2b). */ -static int -test_st_mode(const struct stat64 *st, int mode) +static int test_access(const struct stat64 *sp, int stmode) { - int euid = geteuid(); + gid_t *groups; + register int n; + uid_t euid; + int maxgroups; + /* + * I suppose we could use access() if not running as root and if we are + * running with ((euid == uid) && (egid == gid)), but we've already + * done the stat() so we might as well j...