Hi.

I have the fix for this bug with me. Please find attached the diff file with 
this post.

PS: Avinash Joshi ( OS0142 ) is also working on this bug.
I will send my SCA form tomorrow.

Here is the test case for the bug:

# pwd
/export/home/root/solarisws/usr/src/cmd/file
# ls
Makefile           elf_read32.o       file               file.c~            
file.xpg4          magicutils.o       xpg4_elf_read64.o  xpg4_magicutils.o
elf_read.c         elf_read64.o       file.c             file.h             
magic              req.flg            xpg4_elfcap.o
elf_read.h         elfcap.o           file.c.org         file.o             
magicutils.c       xpg4_elf_read32.o  xpg4_file.o
# cat ~/Documents/CFF/test 
real
terst
hello
# file ~/Documents/CFF/test 
/export/home/solaris/Documents/CFF/test:        fortran program text
# ./file ~/Documents/CFF/test 
/export/home/solaris/Documents/CFF/test:        ascii text
 
 
This message posted from opensolaris.org
-------------- next part --------------
--- file.c.org  Thu Feb  7 17:42:24 2008
+++ file.c      Thu Feb  7 17:50:19 2008
@@ -26,7 +26,7 @@
 /*       All Rights Reserved   */
 
 /*
- * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -109,7 +109,7 @@
 
 static char    *fort[] = {                     /* FORTRAN */
                "function", "subroutine", "common", "dimension", "block",
-               "integer", "real", "data", "double",
+               "integer", "data", "double",
                "FUNCTION", "SUBROUTINE", "COMMON", "DIMENSION", "BLOCK",
                "INTEGER", "REAL", "DATA", "DOUBLE", 0};
 

Reply via email to