ENOENT fix
authorEric Biggers <ebiggers3@gmail.com>
Fri, 31 Aug 2012 04:37:37 +0000 (23:37 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 31 Aug 2012 04:37:37 +0000 (23:37 -0500)
programs/imagex.c

index c02ce6f6f65b12085df2b60153a3888e5553b370..5c5d42bc0733e444f8095059afca97c5a257bebb 100644 (file)
@@ -623,7 +623,7 @@ static int imagex_capture(int argc, const char **argv)
                        goto out_write;
                }
        } else {
-               if (errno != -ENOENT)
+               if (errno != ENOENT)
                        imagex_error_with_errno("Failed to stat `%s'", dir);
        }
 #endif