Re: ignoring current shell and always running posix shell? Re: Should this be this way?

2013-03-14 Thread Greg Wooledge
On Wed, Mar 13, 2013 at 11:52:54PM -0700, Linda Walsh wrote: > Sorta makes the idea of a restricted shell a bit less useful. Honestly, a "restricted shell" is usually a pitiful thing that would be a joke, except it's not even funny. It's what people tried to use for security back in like 1990 whe

Re: ignoring current shell and always running posix shell? Re: Should this be this way?

2013-03-14 Thread Chet Ramey
On 3/14/13 2:52 AM, Linda Walsh wrote: > > > Chet Ramey wrote: >> The default bash behavior and the SuSE modification are both conformant. > > Is 'rbash' not part of POSIX? Posix has chosen not to standardize the restricted shell, either `rsh' or `set -r'. -- ``The lyf so short, th

Re: trim_pathname in general.c should use memmove rather than memcpy

2013-03-14 Thread Chet Ramey
On 3/13/13 5:17 PM, Matthew Riley wrote: > ... > nlen = nend - ntail; > memcpy (nbeg, ntail, nlen); > nbeg[nlen] = '\0'; > > return name; > ... > > [nbeg, nbeg+nlen) and [ntail, ntail+nlen) can overlap, so this code should > use memmove. I'm pretty sure this explains why sometimes using >