bl_update: fixed stat() check

This commit is contained in:
Andrew Tridgell
2015-02-26 08:22:23 +01:00
committed by Lorenz Meier
parent 59e623a2eb
commit 8240e90d26
+1 -1
View File
@@ -74,7 +74,7 @@ bl_update_main(int argc, char *argv[])
struct stat s; struct stat s;
if (!stat(argv[1], &s)) if (stat(argv[1], &s) != 0)
err(1, "stat %s", argv[1]); err(1, "stat %s", argv[1]);
/* sanity-check file size */ /* sanity-check file size */