diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-18 01:52:43 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:42 +0000 |
| commit | f63837888ceab971594343c60c8a3b790bc0e75e (patch) | |
| tree | 813d1b0912afcdc581730d14c6d74409a93b4abd /util/nvmutil | |
| parent | e087d2cf77854a44c79df9c653a2f96b96dcba27 (diff) | |
stricter S_ISREG check
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 4 |
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 |
