Bug#379966: mondoarchive mishandles a filename containing back-quote character

2006-07-29 Thread Andree Leidenfrost
Hi Steven, Thanks for getting back to me and for providing a minimalistic call of mondoarchive. I have now been able to reproduce and can thus confirm this bug. The issue is indeed that special characters in filenames are not escaped. The place this happens is the call to getfattr to get a list

Bug#379966: mondoarchive mishandles a filename containing back-quote character

2006-07-29 Thread Steven M. Robbins
Quoting Andree Leidenfrost [EMAIL PROTECTED]: I have to think about how to properly escape characters in filenames before they are being used in a shell command. (If you have any ideas, please let me know.) One possibility is to replace use of system() by fork() and exec(). The advantage

Bug#379966: mondoarchive mishandles a filename containing back-quote character

2006-07-29 Thread Bruno Cornec
Hello, Sorry to come back to you only now. This bug has also an entry in the main mondo bug system (https://developer.berlios.de/bugs/?func=detailbugbug_id=7421group_id=2524) The main issue is with popen system calls which do not provide any way to protect against those types of chars :-(

Bug#379966: mondoarchive mishandles a filename containing back-quote character

2006-07-29 Thread Steven M. Robbins
Quoting Bruno Cornec [EMAIL PROTECTED]: Hello, Sorry to come back to you only now. This bug has also an entry in the main mondo bug system (https://developer.berlios.de/bugs/?func=detailbugbug_id=7421group_id=2524) That report deals with the quote character ('), whereas I had trouble with

Bug#379966: mondoarchive mishandles a filename containing back-quote character

2006-07-29 Thread Andree Leidenfrost
Yup, just for the record and to explain the underlying mechanism: - system and popen use 'sh -c' - sh is really bash in the case at hand - the only characters that need escaping within double-quotes in bash are $, \ and ` (source: bash manpage under QUOTING) I am not sure what other

Bug#379966: mondoarchive mishandles a filename containing back-quote character

2006-07-27 Thread Andree Leidenfrost
Hi Steve, Thanks a lot for reporting this problem. On Wed, 2006-07-26 at 10:53 -0400, Steve M. Robbins wrote: Package: mondo Version: 2.08-2-3 Severity: normal Hi, I have a directory that contains files with weird characters in their names (don't ask); e.g. ampersand (), quote (') or

Bug#379966: mondoarchive mishandles a filename containing back-quote character

2006-07-27 Thread Steven M. Robbins
Quoting Andree Leidenfrost [EMAIL PROTECTED]: Could you send a screenshot of the terminal window with mondoarchive running when this appears. I have unsuccessfully tried to reproduce this, maybe if I see where/when exactly it occurs that could help me. Well, in the graphical mode, the error