On Fri, Jan 01, 2016 at 08:47:09PM +0100, Theo Buehler wrote:
> On Fri, Jan 01, 2016 at 02:19:16PM -0500, Michael Reed wrote:
> > Hi,
> > 
> > I noticed that when doing `sed -i` on a file you don't have
> > permission to read, the error message printed isn't very helpful:
> > 
> >   $ sed -i '/test/d' /var/log/Xorg.1.log.old
> >   sed: /var/log/Xorg.1.log.old
> > 
> > The patch below seems to fix the issue for me:
> > 
> >   $ ./sed -i '/test/d' /var/log/Xorg.1.log.old
> >   sed: /var/log/Xorg.1.log.old: Permission denied
> > 
> > Regards,
> >   Michael
> > 

Please disregard my previous mail.  Michael's patch is correct.  Whoever
wants to commit has my ok.

Reply via email to