Projects
Browse Source     Search     Timeline     Wiki

Changeset 23310

Show
Ignore:
Timestamp:
07/16/07 08:47:31 (17 months ago)
Author:
zarzycki@…
Message:

clarity++

Files:
1 modified

Legend:

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

    r23304 r23310  
    26082608        } 
    26092609 
     2610        /* 
     2611         * We must copy the results of getpw*(). 
     2612         * 
     2613         * Why? Because subsequent API calls may call getpw*() as a part of 
     2614         * their implementation. Since getpw*() returns a [now thread scoped] 
     2615         * global, we must therefore cache the results before continuing. 
     2616         */ 
     2617 
     2618        desired_uid = pwe->pw_uid; 
     2619        desired_gid = pwe->pw_gid; 
     2620 
    26102621        strlcpy(shellpath, pwe->pw_shell, sizeof(shellpath)); 
    26112622        strlcpy(loginname, pwe->pw_name, sizeof(loginname)); 
     
    26172628        } 
    26182629 
    2619         desired_uid = pwe->pw_uid; 
    2620         desired_gid = pwe->pw_gid; 
    26212630 
    26222631        if (j->username && strcmp(j->username, loginname) != 0) {