The patches for 3.0.9.
[rsync.git/patches.git] / netgroup-auth.diff
index 5b1c64ba9f66569a8df9329252928568c5631b17..ac1087f1a989fd2ca2310e34a2a624be56aa4ec4 100644 (file)
@@ -3,20 +3,27 @@ and hosts deny.
 
 This patch still needs autoconf support for portability.
 
---- old/access.c
-+++ new/access.c
-@@ -22,12 +22,15 @@
-   */
+To use this patch, run these commands for a successful build:
+
+    patch -p1 <patches/netgroup-auth.diff
+    ./configure                           (optional if already run)
+    make
+
+based-on: 40afd365cc8ca968fd16e161d24df5b8a8a520cc
+diff --git a/access.c b/access.c
+--- a/access.c
++++ b/access.c
+@@ -19,11 +19,14 @@
+  */
  
  #include "rsync.h"
 +#include <netdb.h>
  
  static int match_hostname(char *host, char *tok)
  {
        if (!host || !*host)
                return 0;
-+      if (*tok == '@' && tok[1])
++      if (*tok == '@' && tok[1])
 +              return innetgr(tok + 1, host, NULL, NULL);
        return wildmatch(tok, host);
  }