Summary: | Creating a (read-only) file resource for a file owned by a different user not possible in kaddressbook | ||
---|---|---|---|
Product: | kab3 | Reporter: | Reinhold Kainhofer <reinhold> |
Component: | general | Assignee: | Tobias Koenig <tokoe> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Reinhold Kainhofer
2005-01-18 13:42:58 UTC
CVS commit by tokoe: Open file in read-only mode when we've no write access. Fixes #97335 BUG:97335 M +7 -2 resourcefile.cpp 1.34 --- kdelibs/kabc/plugins/file/resourcefile.cpp #1.33:1.34 @@ -178,6 +178,11 @@ bool ResourceFile::doOpen() return ok; } else { + if ( readOnly() ) { + if ( !file.open( IO_ReadOnly ) ) + return false; + } else { if ( !file.open( IO_ReadWrite ) ) return false; + } if ( file.size() == 0 ) { The development of the old KAddressBook will be discontinued for KDE 4.4. Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product. |