diff options
author | John Jetmore <jetmore@exim.org> | 2010-07-16 22:53:24 -0400 |
---|---|---|
committer | John Jetmore <jetmore@exim.org> | 2010-07-16 22:53:24 -0400 |
commit | a56f166d182394d5e339bb50bc1725a3f98c768a (patch) | |
tree | 14f90ed22e4e9e7b81e282be982a484b2026c5d4 /test/runtest | |
parent | 04a45836676516936d791202928e249b711c03ee (diff) |
The test architecture can't support having the testsuite user and the Exim user the same. restrict it in runtest and add a note about it in the README
Diffstat (limited to 'test/runtest')
-rwxr-xr-x | test/runtest | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/runtest b/test/runtest index 43b35904e..d65d0b530 100755 --- a/test/runtest +++ b/test/runtest @@ -2621,6 +2621,12 @@ if (system("cp $parm_exim_dir/eximstats eximdir") != 0) print "Exim user is $parm_eximuser ($parm_exim_uid)\n"; print "Exim group is $parm_eximgroup ($parm_exim_gid)\n"; + +if ($parm_caller_uid eq $parm_exim_uid) { + tests_exit(-1, "Exim user ($parm_eximuser,$parm_exim_uid) cannot be " + ."the same as caller ($parm_caller,$parm_caller_uid)"); +} + print "The Exim user needs access to the test suite directory. Checking ..."; if (($rc = system("sudo bin/checkaccess $parm_cwd/eximdir/exim $parm_eximuser $parm_eximgroup")) != 0) |