* @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"
bool
jobmgr_label_test(jobmgr_t jm, const char *str)
{
- char *endstr = NULL;
const char *ptr;
if (str[0] == '\0') {
}
}
- 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);