[BusyBox-cvs] busybox/libbb copy_file.c,1.31,1.32
Glenn McGrath
bug1 at busybox.net
Mon Apr 19 12:28:05 UTC 2004
Update of /var/cvs/busybox/libbb
In directory nail:/tmp/cvs-serv11132/libbb
Modified Files:
copy_file.c
Log Message:
Dont try and preserve hard links to directories.
The linux kernel doesnt allow hard links to directories, SUS says its
implementation specific.
cramfs gives empty directories and 0 length files the same node it
makies it difficult to distinguish from hard links.
Index: copy_file.c
===================================================================
RCS file: /var/cvs/busybox/libbb/copy_file.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- a/copy_file.c 22 Feb 2004 11:46:49 -0000 1.31
+++ b/copy_file.c 19 Apr 2004 12:28:02 -0000 1.32
@@ -242,7 +242,9 @@
}
#ifdef CONFIG_FEATURE_PRESERVE_HARDLINKS
- add_to_ino_dev_hashtable(&source_stat, dest);
+ if (! S_ISDIR(source_stat.st_mode)) {
+ add_to_ino_dev_hashtable(&source_stat, dest);
+ }
#endif
end:
More information about the busybox-cvs
mailing list