Displaying 1 result from an estimated 1 matches for "machinep".
Did you mean:
machine
2004 Jan 31
1
netgroups patch for rsync 2.6.0
...me.. :)
--- access.c 2003-07-30 16:12:27.000000000 +1000
+++ ../rsync-2.6.0-Linux/access.c 2004-01-31 23:15:37.000000000 +1100
@@ -22,10 +22,31 @@
*/
#include "rsync.h"
+#include <netdb.h>
static int match_hostname(char *host, char *tok)
{
+ char netgroup[512];
+ char *machinep;
+ char *userp;
+ char *domainp;
+
+ if(strlen(tok)){
+ if(tok[0]=='@'){
+ strcpy(netgroup, "");
+ sscanf(tok, "@%s", netgroup);
+ setnetgrent(netgroup);
+ while(getnetgrent(&machinep, &userp, &domainp)){
+ if(machinep!=NULL){
+ if(strcmp(host...