Projects
Browse Source     Search     Timeline     Wiki

Changeset 23136

Show
Ignore:
Timestamp:
03/06/07 11:22:51 (21 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5042202> launchd-201: can't ssh in with AFP OD account (hangs)

Files:
1 modified

Legend:

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

    r23132 r23136  
    34883488                /* no name implies: bootstrap_subset() where creating a "bootstrapper" makes no sense */ 
    34893489                bootstrapper = job_new(jmr, "com.apple.launchctld", NULL, bootstrap_tool); 
    3490                 if (jm || getuid()) { 
     3490                if (jobmgr_assumes(jmr, bootstrapper != NULL) && (jm || getuid())) { 
     3491                        char buf[100]; 
     3492 
     3493                        /* <rdar://problem/5042202> launchd-201: can't ssh in with AFP OD account (hangs) */ 
     3494                        snprintf(buf, sizeof(buf), "0x%X:0:0", getuid()); 
     3495                        envitem_new(bootstrapper, "__CF_USER_TEXT_ENCODING", buf, false); 
    34913496                        bootstrapper->weird_bootstrap = true; 
    34923497                        jobmgr_assumes(jmr, job_setup_machport(bootstrapper));