[ nedit-Bugs-1645661 ] Repeated File Open fails

SourceForge.net noreply at sourceforge.net
Mon Jan 29 14:40:22 CET 2007


Bugs item #1645661, was opened at 2007-01-27 00:05
Message generated for change (Comment added) made by yooden
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1645661&group_id=11005

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Program
Group: development
Status: Open
Resolution: None
Priority: 9
Private: No
Submitted By: Thorsten Haude (yooden)
Assigned to: Thorsten Haude (yooden)
Summary: Repeated File Open fails

Initial Comment:
The device/inode identifier introduced in SF#1027788 are not initialized properly in CloseWindow() and thus erroneously reports any file opened and closed as still opened. This only shows if nedit.honorSymlinks is set to false.

To repeat:
(unset NEDIT_HOME && source/nedit -xrm "nedit.honorSymlinks: False")
- open any file
- close it
- open it again

(Thanks to Bert Wesarg for pointing this out.)

----------------------------------------------------------------------

>Comment By: Thorsten Haude (yooden)
Date: 2007-01-29 14:40

Message:
Logged In: YES 
user_id=119143
Originator: YES

I'm not at all sure. I looked over the other stuff yesterday, found some
code segments in serious needs of refactoring (eg.
CreateDocument()/CreateWindow()), immediatley thought about my whining
during the last years and stopped thinking about it. Sorry.

So please, by all means, point out any places where initialisations are
needed. I will have a look at the window->lastModTime positions later
today.

So I think we shouldn't call memset() but initializeWindowInfo(WindowInfo*
window) and think about the problem elsewhere. Refactoring. Sigh.

----------------------------------------------------------------------

Comment By: Andrew Hood (ajhood)
Date: 2007-01-29 12:54

Message:
Logged In: YES 
user_id=36856
Originator: NO

Are you sure this is the only place the device & inode need initialising?
window->lastModTime is set to 0 three times in source/window.c and four
times in source/file.c as part of WindowInfo initialisations/cleanups.

There is a comment in one place that we possibly should do:

memset(window, 0, sizeof(WindowInfo));

----------------------------------------------------------------------

Comment By: Thorsten Haude (yooden)
Date: 2007-01-28 22:59

Message:
Logged In: YES 
user_id=119143
Originator: YES

File Added: deviceInode.2007-01-28.2.diff

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1645661&group_id=11005


More information about the Develop mailing list