]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/libauth/auth_chuid.c
dtracy: missing break in dteverify
[plan9front.git] / sys / src / libauth / auth_chuid.c
index 7ba0cfc6d7c8df8346b31a833c55471dd4560671..300e93f67316096173635f6ebaabbf2bd701ea33 100644 (file)
@@ -30,8 +30,10 @@ auth_chuid(AuthInfo *ai, char *ns)
 
        /* get a link to factotum as new user */
        fd = open("/srv/factotum", ORDWR);
-       if(fd >= 0)
+       if(fd >= 0){
                mount(fd, -1, "/mnt", MREPL, "");
+               close(fd);
+       }
 
        /* set up new namespace */
        return newns(ai->cuid, ns);