usr.bin/rsync: add -m prune empty directories option

2023-03-22 Thread Bukhris
This is the fixed, reformatted patch to add the -m option to openrsync Thanks to j...@openbsd.org for feedback on style and for reviewing. Looking forward for feedback. Index: extern.h === RCS file: /cvs/src/usr.bin/rsync/extern.h,v r

Re: Add the -m (--prune-empty-dirs) option to openrsync

2023-02-22 Thread bukhris
Hello again, Job Sorry for the recurring formatting and tab issues. Here's the updated diff. Index: extern.h === RCS file: /cvs/src/usr.bin/rsync/extern.h,v retrieving revision 1.44 diff -u -p -u -p -r1.44 extern.h --- extern.h2

Re: Add the -m (--prune-empty-dirs) option to openrsync

2023-02-22 Thread Mohamed Bukhris
-max-size  on the definition of size. +.It Fl m , -prune-empty-dirs +Prune empty directory chains from the file list.  .It Fl n , -dry-run  Do not actually modify the destination.  Mainly useful in combination with On 2/22/23 10:36, Job Snijders wrote: Dear Mohamed, On Wed, Feb 22, 20

Add the -m (--prune-empty-dirs) option to openrsync

2023-02-21 Thread Mohamed Bukhris
Hello, This patch adds the -m/--prume-empty-dirs option to openrsync while keeping said feature compatible with rsync this avoids the 27 -> 31 protocol mismatch error by not sharing the -m option to remote This was tested locally (openrsync -> openrsync) and remotely (openrsync -> rsync) Sorry if