summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 1ff4e4609..c21035ce1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4201,6 +4201,9 @@ restore_backup:
# endif
buf_setino(buf);
}
+ else if (buf->b_dev < 0)
+ /* Set the inode when creating a new file. */
+ buf_setino(buf);
#endif
if (close(fd) != 0)