87 |
if (errno != EXDEV |
if (errno != EXDEV |
88 |
|| (source_exists = cp_mv_stat2(*argv, &source_stat, lstat)) < 1 |
|| (source_exists = cp_mv_stat2(*argv, &source_stat, lstat)) < 1 |
89 |
) { |
) { |
90 |
bb_perror_msg("cannot rename '%s'", *argv); |
bb_perror_msg("can't rename '%s'", *argv); |
91 |
} else { |
} else { |
92 |
static const char fmt[] ALIGN1 = |
static const char fmt[] ALIGN1 = |
93 |
"cannot overwrite %sdirectory with %sdirectory"; |
"can't overwrite %sdirectory with %sdirectory"; |
94 |
|
|
95 |
if (dest_exists) { |
if (dest_exists) { |
96 |
if (dest_exists == 3) { |
if (dest_exists == 3) { |
105 |
} |
} |
106 |
} |
} |
107 |
if (unlink(dest) < 0) { |
if (unlink(dest) < 0) { |
108 |
bb_perror_msg("cannot remove '%s'", dest); |
bb_perror_msg("can't remove '%s'", dest); |
109 |
goto RET_1; |
goto RET_1; |
110 |
} |
} |
111 |
} |
} |