logo       

[ rockbox-Bugs-782248 ] Should prevent saving "filename.": msg#00402

systems.archos.rockbox.sourceforge

Subject: [ rockbox-Bugs-782248 ] Should prevent saving "filename."

Bugs item #782248, was opened at 2003-08-03 09:59
Message generated for change (Comment added) made by mikeholden
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=439118&aid=782248&group_id=44306

Category: User Interface
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Barry McIntosh (combthins)
Assigned to: Nobody/Anonymous (nobody)
Summary: Should prevent saving "filename."

Initial Comment:
If you save a filename ending in "." the file is impossible
to remove, rename or open using Windows. For example
on General Settings menu, save settings to "config00."

The only way I have found to remove the file is using
the ROCKbox ON-PLAY menu. Windows lists the file but
can't do anything with it. cygwin "ls" sometimes lists it,
depending what options you give it, but can't remove or
rename it.

I assume that "filename." is an illegal filename as far as
FAT is concerned, so we should prevent ROCKbox from
creating such files.

Also, if we allow the user to create files called "." or ".."
that might cause even bigger problems. I haven't tried it.

Found on Player built from tarball rockbox-daily-
20030801.

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

Comment By: Mike Holden (mikeholden)
Date: 2003-12-28 19:07

Message:
Logged In: YES
user_id=709750

I'm sure that "filename." is a valid FAT filename, in the
same way that ".rockbox" is valid as a folder name.

The problem is actually that Windows is too "stupid" to
allow you to create these filenames, hence we need to use
DOS (or a decent O/S like Linux) to create the directory
under Windows.

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

Comment By: Barry McIntosh (combthins)
Date: 2003-12-28 17:13

Message:
Logged In: YES
user_id=832491

Moormaster, I can't remember if I tried using scandisk to
recover the file, but that is beside the point. The issue is that
such filenames are illegal in FAT, and Rockbox should aim to
prevent users doing things to the filesystem which are illegal
(just as Windows, Linux and any other operating system
should). Using Scandisk or some other Windows utility might
be a workaround, but it would be much better to have Rockbox
avoid creating the illegal filename in the first place.

CombThins

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

Comment By: Andre Herbst (moormaster)
Date: 2003-12-22 22:53

Message:
Logged In: YES
user_id=917543

Can't Scandisk repair those files? I cannot believe that is
really impossible to delete broken files in Windows. This has to
be a feature of an operating system.

have you tried to rename these files in a console? Sometimes
it works there to access files which Windows cannot handle.

(Windows 98 had the bug that every file with an ASCII 255-
character in the filename was not accessible by any program.
You could rename any file in the MSDOS-Command with this
character and you could rename it back there)

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=439118&aid=782248&group_id=44306



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise