Projects
Browse Source     Search     Timeline     Wiki

Changeset 23366

Show
Ignore:
Timestamp:
09/10/07 13:40:29 (15 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5425348> GroupName key now ignored when UserName key is not set

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchd_core_logic.c

    r23364 r23366  
    26202620        } 
    26212621 
     2622        /* 
     2623         * I contend that having UID == 0 and GID != 0 is of dubious value. 
     2624         * Nevertheless, this used to work in Tiger. See: 5425348 
     2625         */ 
     2626        if (j->groupname && !j->username) { 
     2627                j->username = "root"; 
     2628        } 
     2629 
    26222630        if (j->username) { 
    26232631                if ((pwe = getpwnam(j->username)) == NULL) {