util/nvmutil: warn about gbe.bin hard links

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-14 18:23:52 +00:00
parent b8246acf19
commit 30e953dc8f
+5
View File
@@ -937,6 +937,11 @@ open_gbe_file(void)
gbe_dev = gbe_st.st_dev;
gbe_ino = gbe_st.st_ino;
if (gbe_st.st_nlink > 1)
fprintf(stderr,
"%s: warning: file has %lu hard links\n",
fname, (ulong)gbe_st.st_nlink);
if (gbe_st.st_nlink == 0)
err(EIO, "%s: file unlinked while open", fname);