Dieter Eubell @ ITWM
2014-Apr-30 17:06 UTC
rsync-3.1.0 bug in cmdline parsing for option --usermap and --groupmap
Hello! I think there is a small bug in cmdline parsing for option usermap and groupmap. If you give multiple mappings to --usermap or --groupmap, only the first one is used. Example: rsync -a --usermap=userA:userB,userC:userD <src> <dst> -> Only the user mapping for userA to userB is used, the second mapping is ignored. The attached patch fixed the problem for me. Greetings Dieter -------------- next part -------------- A non-text attachment was scrubbed... Name: rsync-3.1.0-idrange.patch Type: text/x-patch Size: 371 bytes Desc: not available URL: <http://lists.samba.org/pipermail/rsync/attachments/20140430/2f187072/attachment.bin>
Wayne Davison
2014-Apr-30 21:03 UTC
rsync-3.1.0 bug in cmdline parsing for option --usermap and --groupmap
On Wed, Apr 30, 2014 at 10:06 AM, Dieter Eubell @ ITWM < dieter.eubell at itwm.fraunhofer.de> wrote:> If you give multiple mappings to --usermap or --groupmap, only the first > one is used. >I haven't seen that issue. Your patch fixes an issue with --usermap=MIN-MAX:NEW not parsing, and I have incorporated that into the git repo -- much appreciated! If there is any other bug remaining, let me know. ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20140430/37360d32/attachment.html>