bugSpamAssassin Milter Plugin - Bugs: bug #15368, -exec command is executed two time

 
 

bug #15368: -exec command is executed two time

Submitted by:  karthik <karthik_ff>
Submitted on:  Wed 04 Jan 2006 06:54:48 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 05 Jan 2006 05:55:43 AM UTC, comment #2:

When -exec command is replaced my xargs, it is working fine. And when this command is executed fine in command promte, So it should be somewhere near gnumake.

x:
find . \( -name "..tmp" -o -name "*.build" \) -exec rm -rf {} \;

When the above code is replaced by the below code it is working fine without any error.

x:
find . \( -name "..tmp" -o -name "*.build" \) | xargs rm -rf

Even -exec is able to remove files, but still I am getting error message as file not found.

karthik <karthik_ff>
Wed 04 Jan 2006 03:14:07 PM UTC, comment #1:

This isn't a spamass-milter bug, but I'll help you anyway. Could it be that another application (whatever created the file maybe) removed the file before find was able to exec the rm command? You can verify that find isn't calling exec twice by running it under "strace -f".

If you are sure there is a bug in find, you need to file it at https://www.redhat.com/apps/support/ .

Dan Nelson <dnelson>
Project Administrator
Wed 04 Jan 2006 06:54:48 AM UTC, original submission:

OS :Red Hat Enterprise Linux AS release 3 (Taroon Update 6)

Below is a simple find command to list all .tmp or .build file
x:
find . \( -name "..tmp" -o -name "*.build" \) -exec rm -rf {} \;

Excepted result is to delete all files returned by find command without any error

Actual result is -exec rm command is executed two times, it is removing the files and in the next try it shows error as
"find: java/oracle/apps/jtf/jih/wrapper/pub/JtfIhPub.zru.6857.tmp: No such file or directory"

karthik <karthik_ff>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Wed 04 Jan 2006 03:14:07 PM UTCdnelsonOpen/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1