]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/split.c
fix filetype detecton by suffix so that multiple dots dont confuse it. (thanks kvik)
[plan9front.git] / sys / src / cmd / split.c
index 9e46954c5d98f99bffcda315f629f31b11714417..97a18addb77aebb4b5711c8efbf197fe184e183e 100644 (file)
@@ -151,7 +151,7 @@ openf(void)
 
        Bflush(output);
        Bterm(output);
-       if(fd > 0)
+       if(fd >= 0)
                close(fd);
        fd = create(name,OWRITE,0666);
        if(fd < 0) {