Accidental comment now uncommented
[akaros.git] / kern / src / syscall.c
index 51e9c51..c35ac01 100644 (file)
@@ -1141,7 +1141,7 @@ static intreg_t sys_open(struct proc *p, const char *path, size_t path_l,
                kref_put(&file->f_kref);        /* drop our ref */
                if (fd < 0)
                        warn("File insertion failed");
-       } else { //if (get_errno() == ENOENT) {
+       } else if (get_errno() == ENOENT) {
                unset_errno();  /* Go can't handle extra errnos */
                fd = sysopen(t_path, oflag);
                /* successful lookup with CREATE and EXCL is an error */