Skip to content

Ensure error code is kept if destination dir is not writable#670

Open
ColemanTom wants to merge 1 commit intohpc:mainfrom
ColemanTom:dsync-write-to-nonexistant-dir-error-code-fix
Open

Ensure error code is kept if destination dir is not writable#670
ColemanTom wants to merge 1 commit intohpc:mainfrom
ColemanTom:dsync-write-to-nonexistant-dir-error-code-fix

Conversation

@ColemanTom
Copy link

This resolves #668. The error code was not being retained, so rc was stlil zero. I've added it in, keeping the errno value.

$ bin/dsync -X all -q m.grib2 zzfsdfzz/a; echo $?
2

Signed-off-by: ColemanTom <15375218+ColemanTom@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dsync to a folder that doesn't exist returns 0

1 participant