]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pptp/patches/pptp-1.7.2-waitpid.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / pptp / patches / pptp-1.7.2-waitpid.patch
CommitLineData
7d288e76
MT
1Tue Jun 15 15:02:28 2010 James Cameron <quozl@us.netrek.org>
2
3 * pptp.c (open_callmgr): fix usage of status returned by waitpid;
4 it must be wrapped by WEXITSTATUS to shift bits as required.
5
6--- a/pptp.c 2010-06-15 14:35:20.265852021 +0100
7+++ b/pptp.c 2010-06-15 14:32:00.478100392 +0100
8@@ -475,7 +475,7 @@
9 }
10 default: /* parent */
11 waitpid(pid, &status, 0);
12- if (status!= 0)
13+ if (WEXITSTATUS(status) != 0)
14 fatal("Call manager exited with error %d", status);
15 break;
16 }