]> git.saurik.com Git - apple/libc.git/blobdiff - stdlib/FreeBSD/system.c
Libc-1158.50.2.tar.gz
[apple/libc.git] / stdlib / FreeBSD / system.c
index 84b22249bcd3fdb271ae71118e5b112f922b8ff2..61ef03cbf5bdd8885ffeafea8dc8fa8c13509f56 100644 (file)
@@ -83,10 +83,14 @@ __system(command)
 #endif /* __DARWIN_UNIX03 */
 
        if (!command) {         /* just checking... */
+#if TARGET_OS_IPHONE
+               return(0);
+#else
                if (access(_PATH_BSHELL, F_OK) == -1)   /* if no sh or no access */
                        return(0);
                else
                        return(1);
+#endif
        }
 
        if ((err = posix_spawnattr_init(&attr)) != 0) {