rsync: recv_generator: mkdir error with folder ending with space

Bug #1404635 reported by RICQ David
6
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

RICQ David (davidricq87)
summary: - rsync: recv_generator: mkdir error wih folder ending space
+ rsync: recv_generator: mkdir error with folder ending with space
Revision history for this message
Simon Déziel (sdeziel) wrote :

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 '

Changed in rsync (Ubuntu):
status: New → Fix Released
Revision history for this message
RICQ David (davidricq87) wrote :

Hi,

Thanks for the response.

I don't remember the context but maybe the destination was a FAT32 device.
And FAT32 doesn't support folder ending with space.

Revision history for this message
Simon Déziel (sdeziel) wrote :

Interesting! If your recollection is accurate then I unfortunately don't see how rsync could workaround that FAT32 limitation :/

Revision history for this message
RICQ David (davidricq87) wrote :

Yes, I understand. I would just confirm it was not a rsync bug but just a FAT32 feature.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.