Subject: bin/21635: passing lots of filename arguments breaks file(1)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 05/21/2003 18:34:16
>Number:         21635
>Category:       bin
>Synopsis:       passing lots of filename arguments breaks file(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 21 08:35:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        NetBSD 1.6R, libmagic and file(1) from now
>Organization:
>Environment:
System: NetBSD mofo 1.6R NetBSD 1.6R (MOFO) #0: Sat May 3 14:17:24 EST 2003 grant@mofo:/usr/src/sys/arch/i386/compile/MOFO i386
Architecture: i386
Machine: i386
>Description:
file(1) gets confused by lots of arguments:

% file /usr/bin/*
/usr/bin/Mail:         ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD, dynamically linked (uses shared libs), stripped
/usr/bin/addftinfo:    ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD, dynamically linked (uses shared libs), stripped
/usr/bin/addr2line:    ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD, dynamically linked (uses shared libs), stripped
[...]
/usr/bin/cut:          ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD, dynamically linked (uses shared libs), stripped
/usr/bin/cvs:          ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD, dynamically linked (uses shared libs), stripped
/usr/bin/cvsbug:       Bourne shell script text executable
/usr/bin/db:           executable, 
/usr/bin/dc:           executable, 
[repeats...]

it consistently does this for a given list of filenames.

>How-To-Repeat:
see above.
>Fix:
unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: