]> git.saurik.com Git - apple/syslog.git/commitdiff
syslog-377.60.2.tar.gz macos-10152 macos-10153 macos-10154 macos-10155 macos-10156 v377.60.2
authorApple <opensource@apple.com>
Wed, 9 Oct 2019 18:38:04 +0000 (18:38 +0000)
committerApple <opensource@apple.com>
Wed, 9 Oct 2019 18:38:04 +0000 (18:38 +0000)
libsystem_asl.tproj/src/asl.c
syslogd.tproj/after_install.sh

index 8e255b4c79c297ca01de59f3e619a979beebefb6..a504cd4dc57498febe32ebd7291b68c0be54fcdb 100644 (file)
@@ -289,7 +289,6 @@ asl_open(const char *ident, const char *facility, uint32_t opts)
        asl_client_t *asl = asl_client_open(ident, facility, opts);
        if (asl == NULL) return NULL;
 
-       _asl_global_init();
        if (!(opts & ASL_OPT_NO_REMOTE)) _asl_notify_open(1);
 
        return (asl_object_t)asl;
@@ -1385,7 +1384,6 @@ _asl_send_message(asl_object_t obj, uint32_t eval, asl_msg_t *msg, const char *m
                return outstatus;
        }
 
-       _asl_global_init();
        outstatus = 0;
 
        /*
@@ -1480,6 +1478,7 @@ _asl_send_message(asl_object_t obj, uint32_t eval, asl_msg_t *msg, const char *m
        }
 #endif
 
+       _asl_global_init();
        if ((_asl_global.server_port != MACH_PORT_NULL) && (eval & EVAL_SEND_ASL))
        {
                asl_string_t *send_str;
index 55d50c0c2095fa1b7cd34e5e53dfd0f66c62f8f2..05e5854b5db6d3feea43ed5d38040bdf790d25cd 100755 (executable)
@@ -8,17 +8,12 @@ elif [[ "${PLATFORM_NAME}" == "macosx" ]] ; then
     ASL_CONF="${SRCROOT}"/syslogd.tproj/asl.conf.osx
     SYSLOG_CONF="${SRCROOT}"/syslogd.tproj/syslog.conf
 elif [[ "${PLATFORM_NAME}" == "bridgeos" ]] ; then
-    PLIST="${SRCROOT}"/syslogd.tproj/com.apple.syslogd.plist
-    ASL_CONF="${SRCROOT}"/syslogd.tproj/asl.conf.ios
-    SYSLOG_CONF="${SRCROOT}"/syslogd.tproj/syslog.conf
-    SYSTEM_LOG_CONF="${SRCROOT}"/syslogd.tproj/com.apple.system.log.bridgeos
-elif [[ "${PLATFORM_NAME}" == "watchos" ]] ; then
     PLIST="${SRCROOT}"/syslogd.tproj/com.apple.syslogd.disabled.plist
     ASL_CONF="${SRCROOT}"/syslogd.tproj/asl.conf.ios
     SYSLOG_CONF="${SRCROOT}"/syslogd.tproj/syslog.conf
-    SYSTEM_LOG_CONF="${SRCROOT}"/syslogd.tproj/com.apple.system.log
+    SYSTEM_LOG_CONF="${SRCROOT}"/syslogd.tproj/com.apple.system.log.bridgeos
 else
-    PLIST="${SRCROOT}"/syslogd.tproj/com.apple.syslogd.plist
+    PLIST="${SRCROOT}"/syslogd.tproj/com.apple.syslogd.disabled.plist
     ASL_CONF="${SRCROOT}"/syslogd.tproj/asl.conf.ios
     SYSLOG_CONF="${SRCROOT}"/syslogd.tproj/syslog.conf
     SYSTEM_LOG_CONF="${SRCROOT}"/syslogd.tproj/com.apple.system.log