summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-03-03 13:25:45 -0600
committerRich Megginson <rmeggins@redhat.com>2010-03-03 13:32:00 -0700
commite8f50642bd3e19ad528b453850304611ab86506d (patch)
tree778130c8036bde5d8d6bf6a321d3cf7e445ac9c1
parent0f6734d1b559d5c798e6c56d05d1a0affff2b455 (diff)
downloadds-e8f50642bd3e19ad528b453850304611ab86506d.tar.gz
ds-e8f50642bd3e19ad528b453850304611ab86506d.tar.xz
ds-e8f50642bd3e19ad528b453850304611ab86506d.zip
Bug 545620 - Password cannot start with minus sign
https://bugzilla.redhat.com/show_bug.cgi?id=545620 Previously getopt would interpret initial '-' in root password as an option which could lead to setup failure. Now a special argument '--' has been added before the password to distinguish it from other options.
-rw-r--r--ldap/admin/src/scripts/DSUtil.pm.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/admin/src/scripts/DSUtil.pm.in b/ldap/admin/src/scripts/DSUtil.pm.in
index 7e846d73..79586dbb 100644
--- a/ldap/admin/src/scripts/DSUtil.pm.in
+++ b/ldap/admin/src/scripts/DSUtil.pm.in
@@ -736,7 +736,7 @@ sub getHashedPassword {
if ($alg) {
$cmd .= " -s $alg";
}
- $cmd .= " " . shellEscape($pwd);
+ $cmd .= " -- " . shellEscape($pwd);
my $hashedpwd = `$cmd`;
chomp($hashedpwd);