X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/963ca80882dea2131e78563fa59e3e0e7c70c195..0ef5abcbbb95298fa9faf1d3eb275a9e76e1d951:/nameconverter.diff diff --git a/nameconverter.diff b/nameconverter.diff index f385cbf..1d65549 100644 --- a/nameconverter.diff +++ b/nameconverter.diff @@ -48,7 +48,7 @@ diff --git a/clientserver.c b/clientserver.c char *modname, *modpath, *hostaddr, *hostname, *username; int status; -@@ -653,6 +655,44 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) +@@ -654,6 +656,44 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) set_blocking(fds[1]); pre_exec_fd = fds[1]; } @@ -93,7 +93,7 @@ diff --git a/clientserver.c b/clientserver.c umask(0); } #endif -@@ -876,6 +916,44 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) +@@ -877,6 +917,44 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) return 0; } @@ -222,8 +222,8 @@ diff --git a/support/nameconvert b/support/nameconvert new file mode 100755 --- /dev/null +++ b/support/nameconvert -@@ -0,0 +1,42 @@ -+#!/usr/bin/perl -w +@@ -0,0 +1,43 @@ ++#!/usr/bin/perl +# This implements a simple protocol to do {user,group}-{name,id} +# conversions. All input and output consists of simple strings +# with a terminating null char (or newline for debugging). If @@ -242,6 +242,7 @@ new file mode 100755 +# "name converter" setting. + +use strict; ++use warnings; + +my $eol = grep(/^--debug$/, @ARGV) ? "\n" : "\0"; +$/ = $eol;