Changeset 1207 for trunk/src/kash/exec.c
- Timestamp:
- Oct 7, 2007, 7:09:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/exec.c
r1203 r1207 676 676 /* XXX this code stops root executing stuff, and is buggy 677 677 if you need a group from the group list. */ 678 if (statb.st_uid == geteuid()) {678 if (statb.st_uid == sh_geteuid(psh)) { 679 679 if ((statb.st_mode & 0100) == 0) 680 680 goto loop; 681 } else if (statb.st_gid == getegid()) {681 } else if (statb.st_gid == sh_getegid(psh)) { 682 682 if ((statb.st_mode & 010) == 0) 683 683 goto loop;
Note:
See TracChangeset
for help on using the changeset viewer.