Accidental comment now uncommented
authorKevin Klues <klueska@cs.berkeley.edu>
Wed, 18 Jun 2014 23:44:52 +0000 (16:44 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Wed, 18 Jun 2014 23:44:52 +0000 (16:44 -0700)
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 */