Bug#379966: Proposed New Function mr_stresc()

2006-08-03 Thread Andree Leidenfrost
Cool. Thanks! Andree On Thu, 2006-08-03 at 14:14 +0200, Bruno Cornec wrote: > Andree Leidenfrost said on Thu, Aug 03, 2006 at 09:51:01PM +1000: > > > Version 5 is attached. I've reverted to a constant for the escape > > character. I've also gotten rid of all casts you mentioned. I had to > > remo

Bug#379966: Proposed New Function mr_stresc()

2006-08-03 Thread Andree Leidenfrost
Hi Bruno, Version 5 is attached. I've reverted to a constant for the escape character. I've also gotten rid of all casts you mentioned. I had to remove the 'const' for 'escape_list' in main though, otherwise I'd still get the warning for 'toesc'. So, once we start the cycle for 2.0.9 would you be

Bug#379966: Proposed New Function mr_stresc()

2006-08-03 Thread Bruno Cornec
Andree Leidenfrost said on Thu, Aug 03, 2006 at 09:51:01PM +1000: > Version 5 is attached. I've reverted to a constant for the escape > character. I've also gotten rid of all casts you mentioned. I had to > remove the 'const' for 'escape_list' in main though, otherwise I'd still > get the warning

Bug#379966: Proposed New Function mr_stresc()

2006-08-02 Thread Bruno Cornec
Andree Leidenfrost said on Wed, Aug 02, 2006 at 08:54:06PM +1000: > > That fixes which one is used (and should be LSB/FSH compliant) and allow > > for some exotic distro to change that conf file only to make it work. > > Definitively for 3.0.x > > I am certainly happy for you to make that design

Bug#379966: Proposed New Function mr_stresc()

2006-08-02 Thread Andree Leidenfrost
Salut Bruno, On Wed, 2006-08-02 at 02:41 +0200, Bruno Cornec wrote: > Hello, > > Andree Leidenfrost said on Mon, Jul 31, 2006 at 09:37:47PM +1000: > > > > > To the contrary, e.g. using a function that submits > > > > things to 'sh -c' means we have a sane environment like a PATH and so > > > >

Bug#379966: Proposed New Function mr_stresc()

2006-08-01 Thread Bruno Cornec
Hello, Andree Leidenfrost said on Mon, Jul 31, 2006 at 09:37:47PM +1000: > > > To the contrary, e.g. using a function that submits > > > things to 'sh -c' means we have a sane environment like a PATH and so > > > forth. > > > > Yeah, well ... that depends on whether you can presume the user does

Bug#379966: Proposed New Function mr_stresc()

2006-08-01 Thread Andree Leidenfrost
Hi Steven, On Tue, 2006-08-01 at 07:59 -0400, Steven M. Robbins wrote: > Quoting Andree Leidenfrost <[EMAIL PROTECTED]>: > > > Hi Steven, > > > > Thanks for your response. It appears to me that I have offended you with > > my last message. Should this be the case, I do apologise, this was not > >

Bug#379966: Proposed New Function mr_stresc()

2006-08-01 Thread Steven M. Robbins
Quoting Andree Leidenfrost <[EMAIL PROTECTED]>: Hi Steven, Thanks for your response. It appears to me that I have offended you with my last message. Should this be the case, I do apologise, this was not my intention at all. No, I was not offended. I may have overstated things simply in order

Bug#379966: Proposed New Function mr_stresc()

2006-07-31 Thread Andree Leidenfrost
Hi Steven, Thanks for your response. It appears to me that I have offended you with my last message. Should this be the case, I do apologise, this was not my intention at all. On Sun, 2006-07-30 at 19:34 -0400, Steven M. Robbins wrote: > Quoting Andree Leidenfrost <[EMAIL PROTECTED]>: > > > Ste

Bug#379966: Proposed New Function mr_stresc()

2006-07-30 Thread Steven M. Robbins
Quoting Andree Leidenfrost <[EMAIL PROTECTED]>: Steven, Bruno, Attached please find a patch and demo program for a new function mr_stresc() to properly escape strings for use as arguments with (the likes of) system() and popen(). I have thought about using functions like exec() or fork() to av

Bug#379966: Proposed New Function mr_stresc()

2006-07-29 Thread Andree Leidenfrost
Steven, Bruno, Attached please find a patch and demo program for a new function mr_stresc() to properly escape strings for use as arguments with (the likes of) system() and popen(). I have thought about using functions like exec() or fork() to avoid system() and popen(). I don't really see how th