author | llornkcor <llornkcor> | 2004-07-28 04:04:02 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-07-28 04:04:02 (UTC) |
commit | 3237660c06d9920e4323cf6f1ea624a4f102892d (patch) (unidiff) | |
tree | f8f1f3adfb4d42b2f9ca1ddfd2b87a7a0664970d | |
parent | e98e9106df225b9e19a45a6f0e44193b1d018461 (diff) | |
download | opie-3237660c06d9920e4323cf6f1ea624a4f102892d.zip opie-3237660c06d9920e4323cf6f1ea624a4f102892d.tar.gz opie-3237660c06d9920e4323cf6f1ea624a4f102892d.tar.bz2 |
use safer method to set file perms after copy
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index d34f330..4628170 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp | |||
@@ -561,8 +561,8 @@ bool AdvancedFm::copyFile( const QString & src, const QString & dest ) { | |||
561 | srcFile.close(); | 561 | srcFile.close(); |
562 | destFile.close(); | 562 | destFile.close(); |
563 | // Set file permissions | 563 | // Set file permissions |
564 | if( stat( (const char *) src, &status ) == 0 ) { | 564 | if( stat( QFile::encodeName(src), &status ) == 0 ) { |
565 | chmod( (const char *) dest, status.st_mode ); | 565 | chmod( QFile::encodeName(dest), status.st_mode ); |
566 | } | 566 | } |
567 | 567 | ||
568 | return success; | 568 | return success; |