X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fserver%2Fhandler_door.c;fp=src%2Fserver%2Fhandler_door.c;h=e92463b921f46caf2472aa21512f6fa51dbb9c5b;hb=e70e8b768f29316ba82257eac9c2bfbfe4580396;hp=d903bf9bb895df33eac25580149dac2388925086;hpb=35305619c1f2e5b1a708b47a90b99439664495c8;p=tpg%2Fopendispense2.git 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);