diff --git a/main.c b/main.c index f01001b61864..f0ca6e91dd1c 100644 --- a/main.c +++ b/main.c @@ -251,7 +251,7 @@ static void spawn_via_launchd(void) watchman_path, log_name, sock_name, watchman_state_file, sock_name); fclose(fp); // Don't rely on umask, ensure we have the correct perms - chmod(watchman_path, 0644); + chmod(plist_path, 0644); append_argv(argv, plist_path);