Fixed usage or execl
authorJohn Hodge <[email protected]>
Sat, 19 Feb 2011 08:51:38 +0000 (16:51 +0800)
committerJohn Hodge <[email protected]>
Sat, 19 Feb 2011 08:51:38 +0000 (16:51 +0800)
src/server/handler_door.c

index d903bf9..e92463b 100644 (file)
@@ -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);

UCC git Repository :: git.ucc.asn.au