1 Feb 2004 13:25
innetgr revised netgroup patch against 2.6.0
Travis Freeland <travis <at> deakin.edu.au>
2004-02-01 12:25:22 GMT
2004-02-01 12:25:22 GMT
innetgr.. much easier..
Had a look for the user section but didn't find it in my 15 seconds of
looking..
--- access.c 2003-07-30 16:12:27.000000000 +1000
+++ ../rsync-2.6.0-Linux/access.c 2004-02-01 23:21:12.000000000 +1100
<at> <at> -22,10 +22,21 <at> <at>
*/
#include "rsync.h"
+#include <netdb.h>
static int match_hostname(char *host, char *tok)
{
+ char *netgroup;
+
+ if(strlen(tok)>1){
+ if(tok[0]==' <at> '){
+ netgroup=tok+1;
+ if(innetgr(netgroup, host, NULL, NULL)){
+ return(1);
+ }
+ }
+ }
if (!host || !*host) return 0;
return wildmatch(tok, host);
}
(Continue reading)
RSS Feed