Topic: Bug: Loosing file due to missing rights (1 of 1), Read 20 times
Conf: Error messages, Crashes
From: Christian Ziemski
Date: Saturday, April 29, 2006 05:43 AM

There seems to be a severe bug in the new 6.15 file handling (temp
files and backup files).

If the user running VEDIT only has got the right to modify the file to
be edited but not the rights to rename the file (or to create files in
that directory) VEDIT kills that file!


Example:

I'm working as standard user (in Windows2000) and I want to edit the
file C:\Winnt\Test.ini.

The Admin has set C:\Winnt as read-only for normal users, but the file
test.ini itself is allowd to be modified (Full access for everyone).

Opening that file with VEDIT looks normal in the first place.

But trying to save it after editing gives the error messages
CANNOT CREATE BACKUP FILE
CANNOT CLOSE FILE (LOCKED BY ANOTHER PROGRAM?)

And then the file is erased from disk!!!

It is still visible in VEDIT, so you are able to save it elsewhere now
(and only now!). Closing VEDIT without saving kills the file finally.


Dependent on Config(F_BACKUP_MODE) the first message above occurs or
not.

The new Config(F_TEMP_DIR, "Temp file directory") seems to have no
influence on that problem: The file is always gone.


I tried the same with VEDIT 6.13.
In this case the file is opened in read-only mode automatically (what
is wrong, but safer.)


(BTW: Notepad is able to edit that file.)


Christian