diff options
author | Wayne Davison <wayned@samba.org> | 2008-03-03 18:33:11 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-03-03 18:33:11 -0800 |
commit | d1c06c2180f337deaa059fc408fcca4f4770a585 (patch) | |
tree | fc94aa9473fed779acc6b22e8bf3c35384cac897 /testsuite/daemon.test | |
parent | 800a4485f3148765bca7cbc5d3f61be2cc7af276 (diff) | |
download | rsync-d1c06c2180f337deaa059fc408fcca4f4770a585.tar.gz |
Fixing a problem with a NULL config_file pointer when accessing
a single-use daemon without no --config option specified. Added
a test to ensure that this doesn't break in the future.
Diffstat (limited to 'testsuite/daemon.test')
-rw-r--r-- | testsuite/daemon.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/daemon.test b/testsuite/daemon.test index 54865053..439b8835 100644 --- a/testsuite/daemon.test +++ b/testsuite/daemon.test @@ -24,8 +24,29 @@ . "$suitedir/rsync.fns" +SSH="$scratchdir/pretend-ssh" + +cat >"$SSH" <<'EOT' +while : ; do + case "$1" in + -*) shift ;; + localhost) shift; break ;; + *) exit 1 ;; + esac +done + +eval "${@}" +EOT +chmod +x "$SSH" + build_rsyncd_conf +cd "$scratchdir" + +ln -s test-rsyncd.conf rsyncd.conf + +$RSYNC -ve $SSH --rsync-path="$RSYNC" localhost:: + RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon" export RSYNC_CONNECT_PROG |