Subject: CVS commit: pkgsrc
To: None <source-changes@netbsd.org>
From: David Brownlee <abs@netbsd.org>
List: source-changes
Date: 11/09/1999 08:15:00
Module Name: pkgsrc
Committed By: abs
Date: Tue Nov 9 16:14:59 UTC 1999
Modified Files:
pkgsrc/sysutils/cfengine: Makefile
pkgsrc/sysutils/cfengine/files: patch-sum
Added Files:
pkgsrc/sysutils/cfengine/patches: patch-ae
Log Message:
Fix bug which would cause source linked files to sometimes copied
separately.
Just for posterity, here is how to replicate the problem:
(All this is going back to the maintainers)
#!/bin/sh
# Generates a 'from' directory, then runs cfengine to copy it into 'to'.
# The order of file creation in the from directory is significant -
# the 'bad' file must be picked up _after_ the 'subdir'.
# Obvious caveats about IRIX XFS notwithstanding.
TESTDIR=/tmp/cfenginetest
rm -rf $TESTDIR
mkdir -p $TESTDIR
cd $TESTDIR
# Generate cfengine.conf
cat > cfengine.conf <<END
control:
actionsequence = ( copy )
copy:
$TESTDIR/from
dest=$TESTDIR/to recurse=inf
END
# Generate 'from' directory
mkdir from
cd from
touch ok
mkdir subdir
touch bad
cd subdir
ln ../ok
ln ../bad
cd ../..
cfengine -v
echo
echo "Both 'ok' and 'bad' should have the same number of links (2) in both"
echo "'from' and 'to' directories. 'bad' will have 1 if bug is present."
echo
ls -l from to
To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 pkgsrc/sysutils/cfengine/Makefile
cvs rdiff -r1.3 -r1.4 pkgsrc/sysutils/cfengine/files/patch-sum
cvs rdiff -r0 -r1.1 pkgsrc/sysutils/cfengine/patches/patch-ae
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.