use strict;
use Getopt::Long;
+use Cwd;
my @generated_files = qw( proto.h configure config.h.in rsync.1 rsyncd.conf.5 );
EOT
}
+my $patches_dir = Cwd::cwd();
+
$ENV{'LC_COLLATE'} = 'C';
$| = 1;
my $CONF_OPTS = '--cache-file=../config.cache';
mkdir('tmp', 0777) unless -d 'tmp';
chdir('tmp') or die "Unable to chdir to 'tmp'";
-symlink('..', 'patches') unless -d 'patches';
+unlink('patches');
+symlink($patches_dir, 'patches');
symlink($$, 'lock') or die "Unable to create lock file: $!\n";