Changeset 23310
- Timestamp:
- 07/16/07 08:47:31 (17 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_core_logic.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23304 r23310 2608 2608 } 2609 2609 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 2610 2621 strlcpy(shellpath, pwe->pw_shell, sizeof(shellpath)); 2611 2622 strlcpy(loginname, pwe->pw_name, sizeof(loginname)); … … 2617 2628 } 2618 2629 2619 desired_uid = pwe->pw_uid;2620 desired_gid = pwe->pw_gid;2621 2630 2622 2631 if (j->username && strcmp(j->username, loginname) != 0) {

