Changeset 1207 for trunk/src/kash/exec.c


Ignore:
Timestamp:
Oct 7, 2007, 7:09:24 PM (18 years ago)
Author:
bird
Message:

jobs and other stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/exec.c

    r1203 r1207  
    676676                /* XXX this code stops root executing stuff, and is buggy
    677677                   if you need a group from the group list. */
    678                 if (statb.st_uid == geteuid()) {
     678                if (statb.st_uid == sh_geteuid(psh)) {
    679679                        if ((statb.st_mode & 0100) == 0)
    680680                                goto loop;
    681                 } else if (statb.st_gid == getegid()) {
     681                } else if (statb.st_gid == sh_getegid(psh)) {
    682682                        if ((statb.st_mode & 010) == 0)
    683683                                goto loop;
Note: See TracChangeset for help on using the changeset viewer.