dsync to a folder that doesn't exist returns 0
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 200
- Forks
- 85
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 2
Description
If you do similar to below, trying to dsync to a folder which does not exist, the return code from mpifileutils is 0. It should be non-zero, I'm guessing 2?
$ dsync CMakeLists.txt foo/bar; echo $?
[2026-02-04T02:44:12] [0] [/home/username/code/mpifileutils-v0.12/mpifileutils/src/dsync/dsync.c:3360] ERROR: Destination parent directory is not writable `/home/username/code/mpifileutils-v0.12/mpifileutils/src/dsync/foo' (errno=2 No such file or directory)
0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in mpifileutils/src/dsync/dsync.c around line 3360 and trace how the missing destination parent-directory error affects dsync's process exit status. Reproduce the command with a nonexistent destination, then verify that the command reports a non-zero status instead of 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100