Menu

#1543 [W2K] File cannot be saved if there is a read only *.bak

open-works-for-me
5
2008-06-16
2007-08-30
Daniel
No

It is not possible to save the changes of a file, if there exists a *.bak file that is read only (for example: a file test.txt is writeable and a file called test.bak is readonly).

The problem is, that the "Save"-Button does nothing and there is no message box which says why I cannot save the file. It took me a lot of time to find out, why I cannot save the file.

I think it is ok, that Winmerge does not overwrite the *.bak file, because it is read only. But Winmerge should open a message box with a error/information message.

Discussion

  • Kimmo Varis

    Kimmo Varis - 2007-09-04
    • assigned_to: nobody --> kimmov
     
  • Kimmo Varis

    Kimmo Varis - 2007-09-04

    Logged In: YES
    user_id=631874
    Originator: NO

    Thanks for the report, I'll look at this later today.

     
  • Kimmo Varis

    Kimmo Varis - 2007-09-04

    Logged In: YES
    user_id=631874
    Originator: NO

    Seems to work for me in latest 2.6.8 release and in latest 2.7.x version? With which version you did see this bug?

    Were the paths possibly network paths?

     
  • Kimmo Varis

    Kimmo Varis - 2007-09-04
    • status: open --> open-works-for-me
     
  • Daniel

    Daniel - 2007-09-10

    Logged In: YES
    user_id=1191290
    Originator: YES

    Hi kimmov,

    I use Version "2.6.8.0 - Deutsch Unicode" on Windows 2000 on a local machine (no network paths).

    Maybe we do some slightly different things to reproduce this. I can reproduce it with the following MS-DOS script:

    REM Generate testdir and Files:
    mkdir test
    cd test
    echo "Some text" > file1.txt
    echo "Some other text" > file2.txt
    copy file2.txt file2.txt.bak
    attrib +r file2.txt.bak

    REM Start Winmerge with the 2 generated files
    C:\Programme\WinMerge\WinMerge.exe file1.txt file2.txt

    Now I edit file2.txt in Winmerge (add a line of text or something) and save the file. Nothing happens then.

     
  • Kimmo Varis

    Kimmo Varis - 2007-09-10

    Logged In: YES
    user_id=631874
    Originator: NO

    Thanks a lot for the script. Unfortunately this doesn't show the problem in my XP SP2 computer :(

    This could be something W2K specific too. Maybe I should install W2K to virtual machine and test some day..

     
  • Kimmo Varis

    Kimmo Varis - 2008-06-16
    • summary: File cannot be saved, if there is a read only .bak File --> [W2K] File cannot be saved if there is a read only .bak
     
  • Kimmo Varis

    Kimmo Varis - 2008-06-16

    Logged In: YES
    user_id=631874
    Originator: NO

    Altering summary to have [W2K] in it.

     

Log in to post a comment.