diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 18:41:03 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-16 18:41:03 +0000 |
| commit | 4bcb671755e1aa2bd373665437da53fea9068d27 (patch) | |
| tree | 98c289f809e0caeae727eb715294e079c1acd4b0 /util/nvmutil | |
| parent | 04fc4259d8b5a1efa5ecefc0693d5a7f5651098e (diff) | |
nvmutil: harden against hardlink attacks
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index d0c1d042..2182348a 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -991,8 +991,8 @@ open_gbe_file(void) gbe_ino = gbe_st.st_ino; if (gbe_st.st_nlink > 1) - fprintf(stderr, - "%s: warning: file has %lu hard links\n", + err(EINVAL, + "%s: warning: file has multiple (%lu) hard links\n", fname, (unsigned long)gbe_st.st_nlink); if (gbe_st.st_nlink == 0) |
