BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 74ee43c3216e1f3c3b33a2b6afe70b52b62e5465 / vfs / open.c

// Related

Nucleus

Barry Ordered object lists 74ee43c (3 years, 2 months ago)
diff --git a/vfs/open.c b/vfs/open.c
index ff7fd01..9dd8978 100644
--- a/vfs/open.c
+++ b/vfs/open.c
@@ -32,7 +32,7 @@ lookup(const char *path, ObjectList *newcustody)
 	if (*p == '/') {
 		inode = current->fs->root;
 		while (*++p == '/');
-		custody = create_list(&dirEntryType);
+		custody = create_list(&dirEntryType, LIST_NORMAL);
 	} else {
 		inode = current->fs->cwd;
 		custody = copy_list(current->fs->cwdPath);
@@ -125,7 +125,7 @@ open(const char *name, int flags, ...)
 		return -EMFILE;
 
 	/* Find inode */
-	ObjectList *custody = create_list(&dirEntryType);
+	ObjectList *custody = create_list(&dirEntryType, LIST_NORMAL);
 	Inode *inode = lookup(name, custody);
 	DirEntry *entry;
 	va_list args;
@@ -197,7 +197,7 @@ mkdir(const char *pathname, mode_t mode)
 	if (!verify_access(pathname, strnlen(pathname, PATH_MAX), PROT_READ))
 		return -EFAULT;
 	int err;
-	ObjectList *custody = create_list(&dirEntryType);
+	ObjectList *custody = create_list(&dirEntryType, LIST_NORMAL);
 	Inode *inode = lookup(pathname, custody);
 	if (inode) {
 		err = -EEXIST;
@@ -235,7 +235,7 @@ mknod(const char *pathname, mode_t mode, dev_t dev)
 	if (!verify_access(pathname, strnlen(pathname, PATH_MAX), PROT_READ))
 		return -EFAULT;
 	int err;
-	ObjectList *custody = create_list(&dirEntryType);
+	ObjectList *custody = create_list(&dirEntryType, LIST_NORMAL);
 	Inode *inode = lookup(pathname, custody);
 	if (inode) {
 		err = -EEXIST;