You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2007/07/04 22:08:07 UTC
svn commit: r553318 - /spamassassin/branches/3.2/t/SATest.pm
Author: sidney
Date: Wed Jul 4 13:08:07 2007
New Revision: 553318
URL: http://svn.apache.org/viewvc?view=rev&rev=553318
Log:
bug5535: fix make test problem in Windows caused by nonportable use of getpwuid
Modified:
spamassassin/branches/3.2/t/SATest.pm
Modified: spamassassin/branches/3.2/t/SATest.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.2/t/SATest.pm?view=diff&rev=553318&r1=553317&r2=553318
==============================================================================
--- spamassassin/branches/3.2/t/SATest.pm (original)
+++ spamassassin/branches/3.2/t/SATest.pm Wed Jul 4 13:08:07 2007
@@ -162,10 +162,7 @@
$ENV{'TEST_DIR'} = $cwd;
$testname = $tname;
- $spamd_run_as_user = (getpwuid($>))[0];
- if ($> == 0) {
- $spamd_run_as_user = "nobody";
- }
+ $spamd_run_as_user = ($RUNNING_ON_WINDOWS || ($> == 0)) ? "nobody" : (getpwuid($>))[0] ;
}
# a port number between 32768 and 65535; used to allow multiple test