projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3600602
)
* libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.
author
Matt Kraai
<kraai@debian.org>
Tue, 11 Jun 2002 13:25:26 +0000
(13:25 -0000)
committer
Matt Kraai
<kraai@debian.org>
Tue, 11 Jun 2002 13:25:26 +0000
(13:25 -0000)
libbb/copy_file.c
patch
|
blob
|
history
diff --git
a/libbb/copy_file.c
b/libbb/copy_file.c
index ea05c9b8e2a6f4e9a9d8fcbf5118d8ebf759cf8d..3d174ddb3464db5fb4d2a69450b253efab9280c2 100644
(file)
--- a/
libbb/copy_file.c
+++ b/
libbb/copy_file.c
@@
-55,7
+55,7
@@
int copy_file(const char *source, const char *dest, int flags)
dest_exists = 0;
}
- if (dest_exists && source_stat.st_
rdev == dest_stat.st_r
dev &&
+ if (dest_exists && source_stat.st_
dev == dest_stat.st_
dev &&
source_stat.st_ino == dest_stat.st_ino) {
error_msg("`%s' and `%s' are the same file", source, dest);
return -1;