]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
A few small tweaks.
authorWayne Davison <wayne@opencoder.net>
Mon, 15 Jun 2020 20:35:14 +0000 (13:35 -0700)
committerWayne Davison <wayne@opencoder.net>
Mon, 15 Jun 2020 22:04:08 +0000 (15:04 -0700)
NEWS.md
md2man
packaging/md2html
rsyncd.conf.5.md

diff --git a/NEWS.md b/NEWS.md
index aa5b979c7f61e5bf7e5513593db3453d6ff6e81c..efccab91a592dbff9565fdb1bcdecea3d1211bf8 100644 (file)
--- a/NEWS.md
+++ b/NEWS.md
@@ -72,7 +72,8 @@ Protocol: 31 (unchanged)
    strings (for checksums and compression).  The first level just outputs the
    result of each negotiation on the client, level 2 outputs the values of the
    strings that were sent to and received from the server, and level 3 outputs
-   all those values on the server side too (when given the debug option).
+   all those values on the server side too (when the server was given the debug
+   option).
 
  - The --debug=OPTS command-line option is no longer auto-forwarded to the
    remote rsync which allows for the client and server to have different levels
@@ -139,9 +140,12 @@ Protocol: 31 (unchanged)
  - Forward -4 or -6 to the ssh command, making it easier to type than
    `--rsh='ssh -4'` (or -6).
 
+ - More errors messages now mention if the error is coming from the sender or
+   the receiver.
+
 ### PACKAGING RELATED:
 
- - Add installed binary: /usr/bin/rsync-sll
+ - Add installed binary: /usr/bin/rsync-ssl
 
  - Add installed man page: /usr/man/man1/rsync-ssl.1
 
diff --git a/md2man b/md2man
index 7ee63f53dc03dec39b4c0fbf7e6f36b103e02e4a..7c7e7a3c0b7e1ea97fcf15d199cdeb954be89c34 100755 (executable)
--- a/md2man
+++ b/md2man
@@ -181,6 +181,8 @@ class HtmlToManPage(HTMLParser):
                     tag = 'dt'
                 else:
                     st.html_out.append('<dt>')
+            elif tag == 'p':
+                st.at_first_tag_in_dd = True # Kluge to suppress a .P at the start of an li.
             st.at_first_tag_in_li = False
         if tag == 'p':
             if not st.at_first_tag_in_dd:
index a1613aa75bd761c7d86733b58e9bad0090322024..6475434c8c9a611798a9a85bfcb63d51c84a5d16 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # This program is freely redistributable.
 
-import re, argparse
+import os, re, argparse
 
 HTML_START = """\
 <html><head>
@@ -63,6 +63,9 @@ def main():
         html = html.replace('--', '&#8209;&#8209;').replace("\xa0-", '&nbsp;&#8209;').replace("\xa0", '&nbsp;')
         html = re.sub(r'(\W)-', r'\1&#8209;', html)
 
+        if os.path.lexists(htfn):
+            os.unlink(htfn)
+
         with open(htfn, 'w', encoding='utf-8') as fh:
             fh.write(HTML_START % title)
             fh.write(html)
index a91934536762a4dbd040ae7f4b946cdafd7bb381..307742220e75ac2c4b43d207acefe443f321059e 100644 (file)
@@ -1077,7 +1077,6 @@ encryption.
 - You should limit the access to the backend-rsyncd port to only allow the
   proxy to connect.  If it is on the same host as the proxy, then configuring
   it to only listen on localhost is a good idea.
-
 - You should consider turning on the `proxy protocol` parameter if your proxy
   supports sending that information.  The examples below assume that this is
   enabled.