Bug 5456 - copy_file will lost some files
Summary: copy_file will lost some files
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-16 14:08 UTC by tpunix
Modified: 2014-02-25 14:28 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tpunix 2012-08-16 14:08:41 UTC
on some filesystem(cramfs), empty file and empty directory have the same inode number. is_in_ino_dev_hashtable() only check inode number, so the second file/dir will be lost.
Comment 1 Denys Vlasenko 2014-02-25 14:28:57 UTC
Fixed in git:

commit 83bc4332e7d6d74293c1c41e047d2681a8350e1a
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Tue Feb 25 15:27:58 2014 +0100

    du, copy_file: fix file matching on cramfs