File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1681,9 +1681,7 @@ static int launchctl_remove_plists(void)
16811681
16821682static int launchctl_list_contains_plist (const char * name , const char * cmd )
16831683{
1684- int result ;
16851684 struct child_process child = CHILD_PROCESS_INIT ;
1686- char * uid = launchctl_get_uid ();
16871685
16881686 strvec_split (& child .args , cmd );
16891687 strvec_pushl (& child .args , "list" , name , NULL );
@@ -1694,12 +1692,8 @@ static int launchctl_list_contains_plist(const char *name, const char *cmd)
16941692 if (start_command (& child ))
16951693 die (_ ("failed to start launchctl" ));
16961694
1697- result = finish_command (& child );
1698-
1699- free (uid );
1700-
17011695 /* Returns failure if 'name' doesn't exist. */
1702- return !result ;
1696+ return !finish_command ( & child ) ;
17031697}
17041698
17051699static int launchctl_schedule_plist (const char * exec_path , enum schedule_priority schedule )
You can’t perform that action at this time.
0 commit comments