Bug 75644

Summary: rmdir -p path/ fails
Product: [Retired] Red Hat Linux Reporter: Luciano Rocha <lfrocha+rhbugzilla>
Component: fileutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-22 14:00:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch introducing code that strips trailing / in remove_parents() before the loop none

Description Luciano Rocha 2002-10-10 16:16:34 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20021010

Description of problem:
the command rmdir -p fails when there's a trailing slash '/' in the path.
It succeeds in deleting the last component, but complains as if it didn't exist
and aborts.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.mkdir -p a/b/c
2.rmdir -p a/b/c/
3.ls a/b
	

Actual Results:  c deleted, mkdir complains c doesn't exist, aborts

Expected Results:  c deleted, b deleted, a deleted, no complain :)

Additional info:

Comment 1 Luciano Rocha 2002-10-10 16:55:45 UTC
Created attachment 79805 [details]
patch introducing code that strips trailing / in remove_parents() before the loop

Comment 2 Tim Waugh 2002-10-11 15:39:05 UTC
Thanks.

Comment 3 Tim Waugh 2002-10-22 14:00:17 UTC
Fixed package is 4.1.9-12.