Projects
Browse Source     Search     Timeline     Wiki

Changeset 23452

Show
Ignore:
Timestamp:
11/30/07 13:00:42 (12 months ago)
Author:
zarzycki@…
Message:

Random changes.

Location:
trunk/launchd/src
Files:
3 modified

Legend:

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

    r23448 r23452  
    8080 
    8181 
    82 #define LAUNCH_SECDIR "/tmp/launch-XXXXXX" 
     82#define LAUNCH_SECDIR _PATH_TMP "launch-XXXXXX" 
    8383 
    8484#define MACHINIT_JOBKEY_ONDEMAND        "OnDemand" 
  • trunk/launchd/src/launchd_unix_ipc.c

    r23451 r23452  
    124124                } 
    125125        } else { 
    126                 snprintf(ourdir, sizeof(ourdir), "/tmp/launchd-%u.XXXXXX", getpid()); 
     126                snprintf(ourdir, sizeof(ourdir), _PATH_TMP "launchd-%u.XXXXXX", getpid()); 
    127127                if (mkdtemp(ourdir) == NULL) { 
    128128                        runtime_syslog(LOG_ERR, "Could not create critical directory \"%s\": %m", ourdir); 
  • trunk/launchd/src/liblaunch_private.h

    r23445 r23452  
    2525#include <launch.h> 
    2626#include <unistd.h> 
     27#include <paths.h> 
    2728#include <quarantine.h> 
    2829 
     
    4142 
    4243#define LAUNCHD_SOCKET_ENV              "LAUNCHD_SOCKET" 
    43 #define LAUNCHD_SOCK_PREFIX             "/var/tmp/launchd" 
     44#define LAUNCHD_SOCK_PREFIX             _PATH_VARTMP "launchd" 
    4445#define LAUNCHD_TRUSTED_FD_ENV          "__LAUNCHD_FD" 
    4546#define LAUNCHD_ASYNC_MSG_KEY           "_AsyncMessage"