summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-18 01:52:43 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-18 01:52:43 +0000
commit9c450d8528032b4a8dfb74f2d04189e26e325c2e (patch)
treef1e7d51e065d02bbff41ff25f98a93defd72ef30 /util/nvmutil/nvmutil.c
parent6262826627a00739c501c020c5f017b319651484 (diff)
stricter S_ISREG check
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 33d20c9f..f42dbcdb 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -161,6 +161,10 @@ main(int argc, char *argv[])
unsigned long *i;
+#ifndef S_ISREG
+ err(ECANCELED, "Can't determine file types (S_ISREG undefined)");
+#endif
+
#ifndef CHAR_BIT
err(ECANCELED, "Unknown char size");
#else