mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-09-22 18:25:03 -04:00
Make hard-linking work when a device has an st_dev of 0.
This commit is contained in:
1 parent
45c37e737f
commit
c8b823f9d8
1 file changed
+2
-2
@@ -1242,8 +1242,8 @@ struct file_struct *make_file(const char *fname, struct file_list *flist,
|
||||
if (protocol_version >= 28
|
||||
? (!S_ISDIR(st.st_mode) && st.st_nlink > 1)
|
||||
: S_ISREG(st.st_mode)) {
|
||||
tmp_dev = st.st_dev;
|
||||
tmp_ino = st.st_ino;
|
||||
tmp_dev = (int64)st.st_dev + 1;
|
||||
tmp_ino = (int64)st.st_ino;
|
||||
} else
|
||||
tmp_dev = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user