util/nvmutil: fix file check

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-14 18:02:11 +00:00
parent c5c629d776
commit 64389b696b
+1 -1
View File
@@ -2055,7 +2055,7 @@ check_file(int fd, struct stat *st)
if (fstat(fd, st) == -1) if (fstat(fd, st) == -1)
goto err_is_file; goto err_is_file;
if (S_ISREG(st->st_mode)) if (!S_ISREG(st->st_mode))
goto err_is_file; goto err_is_file;
return 0; return 0;