[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/appwizard
From: Ian Reinhart Geiser <geiseri () kde ! org>
Date: 2005-02-16 23:03:33
Message-ID: 20050216230333.EAA741D184 () office ! kde ! org
[Download RAW message or body]
CVS commit by geiseri:
attempt at trying to fix the clobbering of +x on the python template.
M +10 -0 appwizarddlg.cpp 1.115
--- kdevelop/parts/appwizard/appwizarddlg.cpp #1.114:1.115
@@ -693,4 +693,8 @@ bool AppWizardDialog::copyFile( const in
}
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
bool AppWizardDialog::copyFile( const QString &source, const QString &dest, bool \
isXML, bool process ) {
@@ -709,4 +714,9 @@ bool AppWizardDialog::copyFile( const QS
while( !input.atEnd() )
output << \
KMacroExpander::expandMacros(input.readLine(), subMap) << "\n"; + \
// Preserve file mode... + struct stat fmode;
+ ::fstat( inputFile.handle(), &fmode);
+ ::fchmod( outputFile.handle(), fmode.st_mode );
+
}
else
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic