]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/libc/9sys/iounit.c
libaml: fix gc bug, need to amltake()/amldrop() temporary buffer
[plan9front.git] / sys / src / libc / 9sys / iounit.c
index 194b171737679936dbf5cf0df39cdc4e7422d274..02ee77ee4e493d96ae8f28914f5f2a57be331487 100644 (file)
@@ -13,7 +13,7 @@ iounit(int fd)
        char buf[128], *args[10];
 
        snprint(buf, sizeof buf, "#d/%dctl", fd);
-       cfd = open(buf, OREAD);
+       cfd = open(buf, OREAD|OCEXEC);
        if(cfd < 0)
                return 0;
        i = read(cfd, buf, sizeof buf-1);