[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: Fwd: possible bug in find utitlity]

From: Richard Stallman
Subject: address@hidden: Fwd: possible bug in find utitlity]
Date: Fri, 18 May 2001 12:11:10 -0600 (MDT)

From: CyberSurfer <address@hidden>
Organization: Singularity
To: address@hidden
Subject: Fwd: possible bug in find utitlity
Date: Thu, 17 May 2001 02:53:58 -0100

Dear Mr. Stallman,

I go this message when trying to mail to the email adres you  gave
so i was wondering if you could drop this to them.

- --
This Message was undeliverable due to the following reason:

Each of the following recipients was rejected by a remote mail server.
The reasons given by the server are included to help you determine why
each recipient was rejected.

    Recipient: <address@hidden>
    Reason:    Unknown local part bug-find in <address@hidden>
- --

original email:


I think i found a bug in the found utility....


i have a nfs directory : /mnt/mp3 , mounted from /mp3 on server, on my 
i also have a users called mp3 on that workstation (i use this station as a 
mp3 player in my livingroom. Everything works great with xmms but it is not
a big machine (p100 + 32mn, Redhat 7.0) so xmms is very slow with scrolling 
when loading over 6000 mp3's. I decided to write a shell mp3 manager myself
with mpg123 as its player. My mp3 player is almost ready and is working
great...the only problem is that it will not work correctly on the Linux 
station (mp3) in my livingroom. I discoverd that the problem was a piece of
shell code where the user is asked the put in the mp3 directory. 
I paste a piece of the code here:

find $dir -name *.mp3 > $HOME/.smmgl/aantal 
its should find all files ending on .mp3 in the given dir and subdir and 
then put them in a file called aantal (in the users .smmgl directory)
And it does that on all my machines, exept  the on mp3 machine....
It then only finds one file, and that is a mp3 file in the home directory of 
the user mp3....i then noticed that if a .mp3 file already exists in the home
directory, of the user that is executing the find utility, find does
not work correctly. see this output:

address@hidden blender]$ find /home/blackhole1/mp3_users -name *.mp3 | wc -l
address@hidden blender]$ touch bas.mp3
address@hidden blender]$ find /home/blackhole1/mp3_users -name *.mp3 | wc -l
address@hidden blender]$ rm bas.mp3
address@hidden blender]$ find /home/blackhole1/mp3_users -name *.mp3 | wc -l
address@hidden blender]$

i also noticed it does not make a difference if its nfs or local.

I am using Redhat 7.0 & 7.1, same results are on Suse and FreeBSD.

Can you try this yourself to see if i am correct...and how to solve the 

hoping to hear soon from you..


reply via email to

[Prev in Thread] Current Thread [Next in Thread]