]> git.saurik.com Git - apple/launchd.git/commitdiff
launchd-392.39.tar.gz mac-os-x-1075 v392.39
authorApple <opensource@apple.com>
Wed, 19 Sep 2012 17:44:20 +0000 (17:44 +0000)
committerApple <opensource@apple.com>
Wed, 19 Sep 2012 17:44:20 +0000 (17:44 +0000)
launchd/src/launchd_core_logic.c

index 3b86e0ffbd20b1fff6543f90b43a4a0febb8d871..a91441b3c5a115832e0dc0c2be04911053054204 100644 (file)
@@ -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);