commit | 3c01654deb235191d798a5254561624872a7f010 | [log] [tgz] |
---|---|---|
author | Darren Tucker <dtucker@zip.com.au> | Fri May 02 20:48:21 2003 +1000 |
committer | Darren Tucker <dtucker@zip.com.au> | Fri May 02 20:48:21 2003 +1000 |
tree | 71ae1572d4f5440888b9f3ddc1c7ef7512dc7ab6 | |
parent | eab4bae03894f07ea556db4d781795c724245af7 [diff] [blame] |
- (dtucker) Bug #544: ignore invalid cmsg_type on Linux 2.0 kernels, privsep should now work.
diff --git a/monitor_fdpass.c b/monitor_fdpass.c index 641ce72..22b7882 100644 --- a/monitor_fdpass.c +++ b/monitor_fdpass.c
@@ -113,9 +113,11 @@ fatal("%s: no fd", __func__); #else cmsg = CMSG_FIRSTHDR(&msg); +#ifndef BROKEN_CMSG_TYPE if (cmsg->cmsg_type != SCM_RIGHTS) fatal("%s: expected type %d got %d", __func__, SCM_RIGHTS, cmsg->cmsg_type); +#endif fd = (*(int *)CMSG_DATA(cmsg)); #endif return fd;