Modified: trunk/launchd/src/launchctl.c (23013 => 23014)
--- trunk/launchd/src/launchctl.c 2007-01-18 20:37:42 UTC (rev 23013)
+++ trunk/launchd/src/launchctl.c 2007-01-22 19:43:32 UTC (rev 23014)
@@ -2752,7 +2752,8 @@
}
if (assumes(prog != NULL)) {
- assumes(setsockopt(sfd, SOL_SOCKET, SO_EXECPATH, prog, strlen(prog) + 1) != -1);
+ /* The networking team has asked us to ignore the failure of this API if errno == ENOPROTOOPT */
+ assumes(setsockopt(sfd, SOL_SOCKET, SO_EXECPATH, prog, strlen(prog) + 1) != -1 || errno == ENOPROTOOPT);
}
}