From 23f7863a0a8b947520fd970daf7f485b970fc7e3 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 1 Apr 2009 14:18:13 +0000 Subject: [PATCH] [270015] rseserver fails to run on FreeBSD. --- .../serverruntime/scripts/unix/auth.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/serverruntime/scripts/unix/auth.pl b/rse/plugins/org.eclipse.rse.services.dstore/serverruntime/scripts/unix/auth.pl index 32ba47260c6..412c28ad530 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/serverruntime/scripts/unix/auth.pl +++ b/rse/plugins/org.eclipse.rse.services.dstore/serverruntime/scripts/unix/auth.pl @@ -10,6 +10,7 @@ # IBM Corporation - initial API and implementation # David McKnight (IBM) - [254785] [dstore] RSE Server assumes home directory on target machine # David McKnight (IBM) - [262013] [dstore][unix] RSE Daemon fails to start server on HP-UX +# David McKnight (IBM) - [270015] rseserver fails to run on FreeBSD. #******************************************************************************* use Shell; @@ -56,7 +57,7 @@ else $encryptedPWD = crypt($pwdIN, $passwd); $classpath=$ENV{CLASSPATH}; - $suOptions="-p"; + $suOptions="-"; if ($passwd eq $encryptedPWD) { @@ -65,9 +66,9 @@ else $os = uname(); chomp($os); - if (lc($os) eq "aix" || lc($os) eq "HP-UX") + if (lc($os) eq "linux") { - $suOptions="-"; + $suOptions="-p"; } # check for the existence of a home directory