]> 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
old mode 100755 (executable)
new mode 100644 (file)
index 194b171..02ee77e
@@ -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);