mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
util/nvmutil: warn about gbe.bin hard links
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -937,6 +937,11 @@ open_gbe_file(void)
|
|||||||
gbe_dev = gbe_st.st_dev;
|
gbe_dev = gbe_st.st_dev;
|
||||||
gbe_ino = gbe_st.st_ino;
|
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)
|
if (gbe_st.st_nlink == 0)
|
||||||
err(EIO, "%s: file unlinked while open", fname);
|
err(EIO, "%s: file unlinked while open", fname);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user