[Bug 266785] New: Can't save destination file if it is read-only

gvenkata at mathworks.com gvenkata at mathworks.com
Mon Feb 21 06:01:10 CET 2011


https://bugs.kde.org/show_bug.cgi?id=266785

           Summary: Can't save destination file if it is read-only
           Product: kompare
           Version: 3.4
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kompare-devel at kde.org
        ReportedBy: gvenkata at mathworks.com


Version:           3.4 (using KDE 1.2) 
OS:                Linux

I apply changes from a source file to a destination file during the diff. But,
I can't save the destination file if it is read-only. Kompare doesn't ask if I
want to save file anyway or even offer to change the file mode to make it
writable. If I'm merging code diffs from on project version to another, it may
often be the case that all destination files are read-only. I want to make
these writable and merge the diffs. Kompare should offer to change buffer mode
and then save the file (this is what Araxis diff does).

Reproducible: Always

Steps to Reproduce:
Compare two files (ensure that destination file is read-only).
Apply a change shown in the diff.
Now try to save the destination file. 


Actual Results:  
The following message pops up:
"Could not upload the temporary file to the destination location xxx/xxx. The
temporary file is still available under: /tmp/komparexdW2Jb.tmp. You can
manually copy it to the right place."


Expected Results:  
If I 'chmod u+w' the destination file and then try saving, it works fine. Would
be great if Kompare can offer to automatically change file mode in this way.

OS: Linux (x86_64) release 2.6.26-2-amd64
Compiler: Target: x86_64-linux-gnu

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kompare-devel mailing list