Cleanup some indentation issues.
This commit is contained in:
parent
32a1e9e4a5
commit
14376e1f21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284105
@ -122,18 +122,17 @@ copy_file(const FTSENT *entp, int dne)
|
|||||||
/* remove existing destination file name,
|
/* remove existing destination file name,
|
||||||
* create a new file */
|
* create a new file */
|
||||||
(void)unlink(to.p_path);
|
(void)unlink(to.p_path);
|
||||||
if (!lflag)
|
if (!lflag) {
|
||||||
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
|
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
|
||||||
fs->st_mode & ~(S_ISUID | S_ISGID));
|
fs->st_mode & ~(S_ISUID | S_ISGID));
|
||||||
} else {
|
}
|
||||||
if (!lflag)
|
} else if (!lflag) {
|
||||||
/* overwrite existing destination file name */
|
/* overwrite existing destination file name */
|
||||||
to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
|
to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (!lflag) {
|
||||||
if (!lflag)
|
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
|
||||||
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
|
fs->st_mode & ~(S_ISUID | S_ISGID));
|
||||||
fs->st_mode & ~(S_ISUID | S_ISGID));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (to_fd == -1) {
|
if (to_fd == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user