Browse Source

Fix build with clang

pull/936/head
Max Lv 8 years ago
parent
commit
854c6f9779
1 changed files with 6 additions and 4 deletions
  1. 10
      src/acl.c

10
src/acl.c

@ -53,16 +53,18 @@ static int
run_cmd(const char *cmdstring) run_cmd(const char *cmdstring)
{ {
pid_t pid; pid_t pid;
int status;
if (cmdstring == NULL) {
return 1;
}
int status = 0;
if (cmdstring == NULL)
return -1;
if ((pid = fork()) < 0) { if ((pid = fork()) < 0) {
status = -1; status = -1;
} else if (pid == 0) { } else if (pid == 0) {
execl("/bin/sh", "sh", "-c", cmdstring, (char *)0); execl("/bin/sh", "sh", "-c", cmdstring, (char *)0);
_exit(127); _exit(127);
} }
return status; return status;
} }

Loading…
Cancel
Save