Bug 887711

Summary: Cannot delete directory when special characters are used.
Product: [Community] GlusterFS Reporter: Edwin Hernandez <edwinhm>
Component: fuseAssignee: Csaba Henk <csaba>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: amarts, daniel.challen, gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-20 06:32:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Edwin Hernandez 2012-12-17 04:20:32 UTC
Description of problem:
I created a directory "-4oEo5VkALI" and cannot be deleted.

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

How reproducible:
Easy

Steps to Reproduce:
1.Create a directory using os.mkdir or any other mechanism 
2. try to delete it via rm -rf "\-4oEo5VkALI" and will not be able to remove it.

  
Actual results:
Cannot delete directory

Expected results:
Directory deleted


Additional info:

Comment 1 Csaba Henk 2012-12-17 10:54:31 UTC
*** Bug 887712 has been marked as a duplicate of this bug. ***

Comment 2 Csaba Henk 2012-12-17 11:40:04 UTC
*** Bug 887714 has been marked as a duplicate of this bug. ***

Comment 3 Csaba Henk 2012-12-17 11:40:37 UTC
*** Bug 887713 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Challen 2012-12-17 11:55:35 UTC
I don't think this is a bug. Directories and files with - at the start of the name will cause problems in any POSIX file system. Try using a full or partial path:

rmdir ./-4oEo5VkALI

or the -- option:

rm -r -- -4oEo5VkALI

Comment 5 Amar Tumballi 2013-02-20 06:32:36 UTC
comment #4 is precise, and please re-open if thats not the issue.