Projects
Browse Source     Search     Timeline     Wiki

Changeset 23451

Show
Ignore:
Timestamp:
11/30/07 12:47:06 (12 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5622365> launchd should provide error message when it can't write to /tmp

Files:
1 modified

Legend:

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

    r23274 r23451  
    125125        } else { 
    126126                snprintf(ourdir, sizeof(ourdir), "/tmp/launchd-%u.XXXXXX", getpid()); 
    127                 if (!launchd_assumes(mkdtemp(ourdir) != NULL)) { 
     127                if (mkdtemp(ourdir) == NULL) { 
     128                        runtime_syslog(LOG_ERR, "Could not create critical directory \"%s\": %m", ourdir); 
    128129                        goto out_bad; 
    129130                }