From: Apple Date: Wed, 19 Sep 2012 17:44:20 +0000 (+0000) Subject: launchd-392.39.tar.gz X-Git-Tag: mac-os-x-1075^0 X-Git-Url: https://git.saurik.com/apple/launchd.git/commitdiff_plain/4445fe9e12dd880647e4e4e2a1762d720f9515ad launchd-392.39.tar.gz --- diff --git a/launchd/src/launchd_core_logic.c b/launchd/src/launchd_core_logic.c index 3b86e0f..a91441b 100644 --- a/launchd/src/launchd_core_logic.c +++ b/launchd/src/launchd_core_logic.c @@ -16,7 +16,7 @@ * @APPLE_APACHE_LICENSE_HEADER_END@ */ -static const char *const __rcs_file_version__ = "$Revision: 25693 $"; +static const char *const __rcs_file_version__ = "$Revision: 26200 $"; #include "config.h" #include "launchd_core_logic.h" @@ -2951,7 +2951,6 @@ jobmgr_import2(jobmgr_t jm, launch_data_t pload) bool jobmgr_label_test(jobmgr_t jm, const char *str) { - char *endstr = NULL; const char *ptr; if (str[0] == '\0') { @@ -2966,13 +2965,6 @@ jobmgr_label_test(jobmgr_t jm, const char *str) } } - strtoll(str, &endstr, 0); - - if (str != endstr) { - jobmgr_log(jm, LOG_ERR, "Job labels are not allowed to begin with numbers: %s", str); - return false; - } - if ((strncasecmp(str, "com.apple.launchd", strlen("com.apple.launchd")) == 0) || (strncasecmp(str, "com.apple.launchctl", strlen("com.apple.launchctl")) == 0)) { jobmgr_log(jm, LOG_ERR, "Job labels are not allowed to use a reserved prefix: %s", str);