Skip to content

Commit

Permalink
fix(mv): attempt to fix windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
PThorpe92 committed Oct 1, 2023
1 parent 6cdab9a commit 7ea67a7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/uu/mv/src/mv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,15 @@ fn move_files_into_dir(files: &[PathBuf], target_dir: &Path, b: &Behavior) -> UR
Err(e) if e.to_string().is_empty() => set_exit_code(1),
Err(e) => {
match e.raw_os_error() {
#[cfg(unix)]
Some(ENOTEMPTY | EEXIST | EDQUOT | EISDIR | ENOSPC | EMLINK | ETXTBSY) => {
Some(
ENOTEMPTY
| uucore::libc::EEXIST
| uucore::libc::EDQUOT
| uucore::libc::EISDIR
| uucore::libc::ENOSPC
| uucore::libc::EMLINK
| uucore::libc::ETXTBSY,
) => {
// The error message was changed to match GNU's decision
// when an issue was filed. These will match when merged upstream.
let e = e
Expand Down

0 comments on commit 7ea67a7

Please sign in to comment.