[CentOS] Serious Privileges Problem: Second Post!

Frank Cox theatre at sasktel.net
Tue Nov 10 07:05:36 UTC 2009


On Tue, 10 Nov 2009 07:53:30 +0100
Mogens Kjaer wrote:

> > The file command will verify that for you.
> 
> Are you sure?

Well, I guess not then.  I assumed that "file" would treat a .py file as a text
file.  I don't do any programming with Python and haven't looked at it closely.

"file" tells me that a file that's created with Borland Turbo C (DOS) is
"data", but a file of C source code that's created with Linux gedit is "ASCII C
program text".

A text file that's created with the DOS "edit" command is "ASCII English text,
with CRLF line terminators", and a text file that's created with Linux gedit is
"ASCII text".

So file can tell the difference in pretty much every case except for a Python
file.   Which may be an oversight in the magic definitions.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com



More information about the CentOS mailing list