Searched refs:xs (Results 1 - 2 of 2) sorted by relevance

/ast/src/cmd/at/
H A Datx.c82 struct stat xs; local
92 ++n && lstat(AT_EXEC_FILE, &xs) ||
93 ++n && !AT_EXEC_OK(&ds, &xs) ||
H A Datd.c1336 struct stat xs; local
1382 if (lstat(s, &xs))
1384 if (!S_ISREG(xs.st_mode))
1385 error(3, "%s: invalid mode %s -- regular file expected", s, fmtmode(xs.st_mode, 0));
1386 if ((xs.st_mode&(S_IXUSR|S_IXGRP|S_IWOTH|S_IXOTH)) != (S_IXUSR|S_IXGRP|S_IXOTH))
1387 error(3, "%s: invalid mode %s", s, fmtmode(xs.st_mode, 0));
1388 if (!(xs.st_mode&S_ISUID) && geteuid() != 0 && geteuid() != xs.st_uid)
1389 error(3, "%s: invalid euid %d -- %d expected", s, geteuid(), xs.st_uid);
1391 if (!AT_EXEC_OK(&ds, &xs))
[all...]

Completed in 18 milliseconds