From: John Hodge Date: Sat, 19 Feb 2011 08:51:38 +0000 (+0800) Subject: Fixed usage or execl X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e70e8b768f29316ba82257eac9c2bfbfe4580396;p=tpg%2Fopendispense2.git Fixed usage or execl --- diff --git a/src/server/handler_door.c b/src/server/handler_door.c index d903bf9..e92463b 100644 --- a/src/server/handler_door.c +++ b/src/server/handler_door.c @@ -128,7 +128,7 @@ int Door_DoDispense(int User, int Item) // Close read end of stdout, and set it to #1 close(stdout_pair[0]); dup2(stdout_pair[1], 1); - execl("llogin", "door", "-w-", NULL); + execl("/bin/sh", "sh", "-c", "llogin door -w-", NULL); kill(parent_pid, SIGCHLD); perror("execl"); exit(-1);