summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenaud Chaillat <rchaillat@mandriva.com>2001-09-04 15:58:58 +0000
committerRenaud Chaillat <rchaillat@mandriva.com>2001-09-04 15:58:58 +0000
commit83d38153167eed7a987fece2f7ed3bff0ad108db (patch)
treef80b473e326c3baa8e5efec29abb5c974988720f
parent29605b3a54e7cb9961651b3a2c54557b99fe8323 (diff)
downloadmgaonline-83d38153167eed7a987fece2f7ed3bff0ad108db.tar
mgaonline-83d38153167eed7a987fece2f7ed3bff0ad108db.tar.gz
mgaonline-83d38153167eed7a987fece2f7ed3bff0ad108db.tar.bz2
mgaonline-83d38153167eed7a987fece2f7ed3bff0ad108db.tar.xz
mgaonline-83d38153167eed7a987fece2f7ed3bff0ad108db.zip
fixed a regexp
-rwxr-xr-xmdkonline5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkonline b/mdkonline
index 09276745..355debfe 100755
--- a/mdkonline
+++ b/mdkonline
@@ -206,7 +206,7 @@ sub test_passwd () {
$login = $login_user->get_text();
$passwd = $passwd_user->get_text();
- if ($login !~ /\s*/ && $passwd !~ /\s*/) {
+ if ($login !~ /\s+/ && $passwd !~ /\s+/) {
# OLD METHOD, keep it for next version ?...
# my $ssh_script = "";
@@ -257,7 +257,8 @@ sub send_config {
# When we arrive here, we're sure the login/passwd is correct
# print STDERR "Sending config\n";
- `/usr/sbin/drakbug_report > /root/drakbug_report.log`;
+ `/usr/sbin/drakbug_report > /root/$login-drakbug_report.log`;
+ `/usr/bin/bzip2 -9 /root/$login-drakbug_report.log`;
my $scp_script = "";
foreach ("/usr/bin/scpcall.exp","./scpcall.exp") {