54b7f9c847
ok espie@
13 lines
729 B
Plaintext
13 lines
729 B
Plaintext
$OpenBSD: patch-src_dialogs_qfiledialog_cpp,v 1.6 2004/01/08 01:12:59 brad Exp $
|
|
--- src/dialogs/qfiledialog.cpp.orig 2003-10-09 21:47:08.000000000 -0400
|
|
+++ src/dialogs/qfiledialog.cpp 2003-11-11 19:36:27.000000000 -0500
|
|
@@ -3157,7 +3157,7 @@ void QFileDialog::setDir( const QString
|
|
user = dr.mid( 1, i-1 ).local8Bit();
|
|
dr = dr.mid( i, dr.length() );
|
|
struct passwd *pw;
|
|
-#if defined(QT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_FREEBSD)
|
|
+#if defined(QT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !(defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD))
|
|
struct passwd mt_pw;
|
|
char buffer[2048];
|
|
if ( ::getpwnam_r( user, &mt_pw, buffer, 2048, &pw ) == 0 && pw == &mt_pw )
|