FreeNAS/freenas c1a17e2src/middlewared/middlewared/plugins rsync.py

Fix escaping space characters for rsync

This commit fixes an issue where we escaped the whole rsync command with shlex which resulted in a valid module name not being recognized as valid at all. Instead of doing that for the whole command, we only escape spaces on paths here which ensures that rest of the command works as desired and also paths with spaces are escaped properly and work with rsync.
DeltaFile
+7-4src/middlewared/middlewared/plugins/rsync.py
+7-41 files

UnifiedSplitRaw