Whamcloud - gitweb
Branch b_release_1_4_6
authoradilger <adilger>
Wed, 14 Dec 2005 09:35:44 +0000 (09:35 +0000)
committeradilger <adilger>
Wed, 14 Dec 2005 09:35:44 +0000 (09:35 +0000)
Actually fix this problem
b=9692

lustre/liblustre/tests/sanity.c

index 13be9d3..db51c14 100644 (file)
@@ -366,7 +366,7 @@ int t14(char *name)
         snprintf(dir, MAX_PATH_LENGTH, "%s/test_t14_dir/", lustre_path);
 
         rc = mkdir(dir, 0755);
-        if (rc < 0 && errno != ENOENT) {
+        if (rc < 0 && errno != EEXIST) {
                 printf("mkdir(%s) error: %s\n", dir, strerror(errno));
                 exit(1);
         }