[svlug] LoveLetter reporting -- Microsoft, not computer, virus

Joey Hess joey at kitenet.net
Fri May 5 17:28:04 PDT 2000


kmself at ix.netcom.com wrote:
> Distinction between '/bin/ls' and '/bin/ls --color=auto' is rather
> marked.
> 
>     /bin/ls /usr/doc:                  0.335 s
>     /bin/ls --color=always /usr/doc:  11.798 s
> 
> ...the first is OK.  The second takes so much longer because DIRCOLORS
> requires knowing a file's type.  AFAIK it opens and reads the first few
> bytes of each file.

joey at gumdrop:~>strace ls --color=always 2>&1 |grep open
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/dev/null", O_RDONLY|O_NONBLOCK|0x10000) = -1 ENOTDIR (Not a directory)
open(".", O_RDONLY|O_NONBLOCK|0x10000)  = 3
joey at gumdrop:~>strace ls --color=never 2>&1 |grep open 
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/dev/null", O_RDONLY|O_NONBLOCK|0x10000) = -1 ENOTDIR (Not a directory)
open(".", O_RDONLY|O_NONBLOCK|0x10000)  = 3

-- 
see shy jo





More information about the svlug mailing list