Replaced execlp() with execl() as a path search is not required
This commit is contained in:
		@@ -417,7 +417,7 @@ static void execute_action(char* mode, const gchar* cmd) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	free(cache_path);
 | 
						free(cache_path);
 | 
				
			||||||
	if(strcmp(mode, "run") == 0) {
 | 
						if(strcmp(mode, "run") == 0) {
 | 
				
			||||||
		execlp(cmd, cmd, NULL);
 | 
							execl(cmd, cmd, NULL);
 | 
				
			||||||
		fprintf(stderr, "%s cannot be executed\n", cmd);
 | 
							fprintf(stderr, "%s cannot be executed\n", cmd);
 | 
				
			||||||
		exit(errno);
 | 
							exit(errno);
 | 
				
			||||||
	} else if(strcmp(mode, "dmenu") == 0) {
 | 
						} else if(strcmp(mode, "dmenu") == 0) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user