lkml.org 
[lkml]   [2006]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectFile type by extension is evil (was Re: Why the DOS has many ntfs read and write driver,but the linux can't for a long time)
* Olivier Galibert <galibert@pobox.com> [060109 19:44]:
> >From what I can see it does icons on non-executable entirely based on
> the extension and nothing else on the first pass.
>
> Not a bad strategy, too. Doing a file(1) on everything can only be
> slow given the random disk accesses it generates. Maybe a file(1) as
> a _second_ pass would work.

That may be a good strategy if you have user conditioned to all the
effects you get by this (i.e. if you only focus on Windows users and
want them provide with a system as broken as they know it) and programs
adopted to cope with the most ill effects (ever asked why some browsers
always foozle the name of downloaded files with some .html or the like?)

For everyone else looking at the file is the only sane way to know the type
of file.

Bernhard R. Link
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-10 11:35    [W:0.082 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site