VirtualBox

Changeset 1077 in kBuild for trunk/src/ash


Ignore:
Timestamp:
Jul 19, 2007 3:54:33 PM (17 years ago)
Author:
bird
Message:

Drop all the .profile, /etc/profile and ENV stuff as that will screw up sometimes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ash/main.c

    r809 r1077  
    9090#endif
    9191
     92#ifdef KMK
     93#error "Huh? KMK isn't defined!"
     94#else
    9295STATIC void read_profile(const char *);
     96#endif
    9397STATIC char *find_dot_file(char *);
    9498int main(int, char **);
     
    187191        if (argv[0] && argv[0][0] == '-') {
    188192                state = 1;
     193#ifndef KMK
    189194                read_profile("/etc/profile");
     195#endif
    190196state1:
    191197                state = 2;
     198#ifndef KMK
    192199                read_profile(".profile");
     200#endif
    193201        }
    194202state2:
    195203        state = 3;
     204#ifndef KMK
    196205        if (getuid() == geteuid() && getgid() == getegid()) {
    197206                if ((shinit = lookupvar("ENV")) != NULL && *shinit != '\0') {
     
    200209                }
    201210        }
     211#endif
    202212state3:
    203213        state = 4;
     
    285295
    286296
     297#ifndef KMK
    287298/*
    288299 * Read /etc/profile or .profile.  Return on error.
     
    318329        popfile();
    319330}
     331#endif /* !KMK */
    320332
    321333
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette