rsync: recv_generator: mkdir error with folder ending with space
Bug #1404635 reported by
RICQ David
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| rsync (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Hi,
I notice what rsync is not able to copy folder which ending with space :
Example which not working :
rsync: recv_generator: mkdir "/var/Janji feat. T.R. " failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
If I remove space at the end, it works.
mkdir can create folder with space at the end.
rsync version 3.1.0 protocol version 31
| summary: |
- rsync: recv_generator: mkdir error wih folder ending space + rsync: recv_generator: mkdir error with folder ending with space |
To post a comment you must log in.

I'll mark this old bug as fix released because I can't reproduce it on 20.04 (3.1.3) nor 22.04 (rsync 3.2.7). Here's how I tested it on 20.04:
# rsync --version
rsync version 3.1.3 protocol version 31
...
# mkdir -p "src/a " dst
# rsync -aiv src/ dst/
sending incremental file list
.d..t...... ./
cd+++++++++ a /
sent 73 bytes received 23 bytes 192.00 bytes/sec
total size is 0 speedup is 0.00
# ls -l dst/
total 1
drwxr-xr-x 2 root root 2 Mar 8 00:30 'a '