applyperms: Add some context to posix_spawnp error

This commit is contained in:
Michael Forney
2020-08-17 02:46:21 -07:00
parent 8f040a0f00
commit 465d5dedb2
+1 -1
View File
@@ -100,7 +100,7 @@ spawn(char **argv, pid_t *pid)
if ((errno = posix_spawn_file_actions_adddup2(&actions, fd[1], 1)) > 0)
die("posix_spawn_file_actions_adddup2:");
if ((errno = posix_spawnp(pid, argv[0], &actions, NULL, argv, environ)) > 0)
die("posix_spawnp:");
die("posix_spawnp %s:", argv[0]);
posix_spawn_file_actions_destroy(&actions);
close(fd[1]);