Bug 219261

Summary: KSaveFile::backupFile doesn't seem to respect group in file mode
Product: [Unmaintained] kdelibs Reporter: Robby Stephenson <robby>
Component: kdecoreAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Robby Stephenson 2009-12-19 01:09:52 UTC
Version:            (using KDE 4.3.4)
Installed from:    openSUSE RPMs

This might be a "feature" or intended function of the KSaveFile::backupFile() method, but its different than my expectation.

The backup file, simply backup file in my case with a ~ suffix, doesn't have the same group ownership as the original file.

After saving a file (with Tellico) in group 'video' (just for testing), the backup file has the default group of 'users'. The 'robby' user is a member of both groups.

robby@homebase:~/tmp> ls -l tctmp1.tc*
-rw------- 1 robby video 152070 2009-12-18 16:10 tctmp1.tc
-rw------- 1 robby users 152063 2009-12-18 16:10 tctmp1.tc~

Is that intended? I would expect the backup file to have identical ownership as the original one, at least as much as possible.
Comment 1 Christoph Cullmann 2024-09-14 17:06:57 UTC
Hi,

kdelibs (version 4 and earlier) is no longer maintained since a few years.

KDE Frameworks 5 or 6 might already have resolved this bug.

If not, please re-open against the matching framework if feasible or against the application that shows the issue.

We then can still dispatch it to the right Bugzilla product or component.

Greetings
Christoph Cullmann