mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Attempt to make a warning go away without increasing size.
This commit is contained in:
parent
d221d2137f
commit
386f85eadf
@ -165,11 +165,10 @@ int copy_file(const char *source, const char *dest, int flags)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
dest_exists = 0;
|
goto dest_removed;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
dest_removed:
|
||||||
if (!dest_exists) {
|
|
||||||
dst_fd = open(dest, O_WRONLY|O_CREAT, source_stat.st_mode);
|
dst_fd = open(dest, O_WRONLY|O_CREAT, source_stat.st_mode);
|
||||||
if (dst_fd == -1) {
|
if (dst_fd == -1) {
|
||||||
bb_perror_msg("unable to open `%s'", dest);
|
bb_perror_msg("unable to open `%s'", dest);
|
||||||
|
Loading…
Reference in New Issue
Block a user