Jump to content
Muxe Inc Forums
Sign in to follow this  
dandv

Bypassing various checks

Recommended Posts

dandv    0

In general, on a case-insenstitive file system such as NTFS or FAT32,

when NDN needs to check if two filenames are the same,

it should NOT simply compare them, but compare the

lowercased (or uppercased) forms. That way, 'c:\a.a' will

be detected as being the same as 'C:\a.a'.

 

Not implementing this procedure could lead to potentially

dangerous problems. Since I do not have the source code, I

will let the NDN author discover and correct such incomplete

checks.

 

One example of a situation which leads to a bug is the fact

that you can fool NDN in opening the same file in two windows,

although Confirmations -> "Reload a file in viewer/editor" is

checked:

 

1. Edit an existing file, let's say "c:\autoexec.bat"

2. Shift+F4 and type "C:\AUTOEXEC.BAT".

3. NDN will NOT detect that the files are the same.

 

Hope this helps,

Dan Dascalescu

Share this post


Link to post
Share on other sites

Hi!

 

indeed, shiftf4 doesnt check filename cases correctly

 

the Confirmations.Reload file... option has nothing to do with opening the same file 2 times or more

 

it is only related to the Shift-F3 keys RELOAD in viewer and editor

 

thanks

Stefan/AH

Share this post


Link to post
Share on other sites
dandv    0
the Confirmations.Reload file... option has nothing to do with opening the same file 2 times or more

Right! It's the "Confirmations -> Open new window" setting.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×