Revision
23014
Author
zarzycki@apple.com
Date
2007-01-22 11:43:32 -0800 (Mon, 22 Jan 2007)

Log Message

<rdar://problem/4800388> 9A292: Bug: launchctl.c:2724 (22900):42: setsockopt(sfd, SOL_SOCKET, SO_EXECPATH, prog, strlen(prog) + 1) != -1

Modified Paths

Diff

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);
 	}
 }