Here is an annoying thing

S.P. van Noort S.P.vanNoort at phys.uu.nl
Tue Jan 11 20:44:20 UTC 2005


On Wed, 2005-01-12 at 05:12 +1000, CB wrote:
> Jozsef Mak wrote:
> 
> > When i double click a video clip to play it in Mplayer a window pops 
> > up with the following message;
> >
> > The filename "ogy.wmv" indicates that this file is of type "Microsoft 
> > WMV video". The contents of the file indicate that the file is of type 
> > "Microsoft ASF video". If you open this file, the file might present a 
> > security risk to your system.

The reason for this message is to prevent "spoofing" of filenames, that
a malicious person gives a file an "innocent" extension like .txt, but
that the file is really (determined by the mimetype) a more dangerous
file. 

When nautilus sees a mismatch, determined by the file /etc/mimetypes,
each line consisting the mimetype with the corresponding extension, it
refuses to open the file by just clicking on it (open with... works
fine, because you then explicitely tell nautilus with which program to
open the file).

>From nautilus 2.7.1 on, if both the filetype corresponding to the
extension and the filetype corresponding to the mimetype, are opened
with the same program, no error is shown. So if you match both
"Microsoft WMF video" and "Microsoft ASF video" to be opened in mplayer,
no errors should appear anymore.

Hope this helps,

Sander 







More information about the ubuntu-users mailing list