summaryrefslogtreecommitdiff
authorzecke <zecke>2003-09-20 18:20:54 (UTC)
committer zecke <zecke>2003-09-20 18:20:54 (UTC)
commita986ab57229fa7a0d039d320001dc48018951bf1 (patch) (side-by-side diff)
treeeed67efa5e0a18ce0a7b70665473574b0638fa40
parent2c35d17b1c497486f6f33ed31567507419706d97 (diff)
downloadopie-a986ab57229fa7a0d039d320001dc48018951bf1.zip
opie-a986ab57229fa7a0d039d320001dc48018951bf1.tar.gz
opie-a986ab57229fa7a0d039d320001dc48018951bf1.tar.bz2
Fix the config name no need to append the .conf yourself
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/transferserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/transferserver.cpp b/core/launcher/transferserver.cpp
index 2180577..c69df2d 100644
--- a/core/launcher/transferserver.cpp
+++ b/core/launcher/transferserver.cpp
@@ -201,49 +201,49 @@ bool SyncAuthentication::checkPassword( const QString& password )
"please upgrade."),
QMessageBox::Warning,
QMessageBox::Cancel, QMessageBox::NoButton, QMessageBox::NoButton,
0, QString::null, TRUE, WStyle_StaysOnTop);
unauth.setButtonText(QMessageBox::Cancel, tr("Deny"));
unauth.exec();
denials++;
lastdenial=now;
}
return FALSE;
}
// Second, check sync password...
static int lock=0;
if ( lock ) return FALSE;
++lock;
/*
* we need to support old Sync software and QtopiaDesktop
*/
if ( password.left(6) == "Qtopia" || password.left(6) == "rootme" ) {
- Config cfg( "Security.conf" );
+ Config cfg( "Security" );
cfg.setGroup("Sync");
QStringList pwds = cfg.readListEntry("Passwords",' ');
for (QStringList::ConstIterator it=pwds.begin(); it!=pwds.end(); ++it) {
#ifndef Q_OS_WIN32
QString cpassword = QString::fromLocal8Bit(
crypt( password.mid(8).local8Bit(), (*it).left(2).latin1() ) );
#else
// ### revise
QString cpassword("");
#endif
if ( *it == cpassword ) {
lock--;
return TRUE;
}
}
// Unrecognized system. Be careful...
QMessageBox unrecbox(
tr("Sync Connection"),
tr( "<p>An unrecognized system is requesting access to this device."
"<p>If you have just initiated a Sync for the first time, this is normal."),
QMessageBox::Warning,
QMessageBox::Cancel, QMessageBox::Yes, QMessageBox::NoButton,
0, QString::null, TRUE, WStyle_StaysOnTop);