Re: behaviour change with rc.subr using su -m

2018-10-29 Thread Antoine Jacoutot
On Mon, Oct 29, 2018 at 08:36:13AM +0100, Sebastien Marie wrote: > On Mon, Oct 29, 2018 at 12:48:19AM +0100, Antoine Jacoutot wrote: > > On Sun, Oct 28, 2018 at 07:18:53PM +0100, Sebastien Marie wrote: > > > On Sun, Oct 28, 2018 at 05:21:38PM +0100, Antoine Jacoutot wrote: > > > > > > > > Thinking

Re: behaviour change with rc.subr using su -m

2018-10-29 Thread Sebastien Marie
On Mon, Oct 29, 2018 at 12:48:19AM +0100, Antoine Jacoutot wrote: > On Sun, Oct 28, 2018 at 07:18:53PM +0100, Sebastien Marie wrote: > > On Sun, Oct 28, 2018 at 05:21:38PM +0100, Antoine Jacoutot wrote: > > > > > > Thinking about it I wonder if this shouldn't just be "fixed" in the rc.d > > > scri

Re: behaviour change with rc.subr using su -m

2018-10-28 Thread Antoine Jacoutot
On Sun, Oct 28, 2018 at 07:18:53PM +0100, Sebastien Marie wrote: > On Sun, Oct 28, 2018 at 05:21:38PM +0100, Antoine Jacoutot wrote: > > > > Thinking about it I wonder if this shouldn't just be "fixed" in the rc.d > > script itself. > > it could, but I am expecting some others rc.d files to need

Re: behaviour change with rc.subr using su -m

2018-10-28 Thread Alexander Hall
While I'm not a porter by any means, I'd be fine with either cd ~ or cd /, and I'd certainly expect one of them. I guess cd / might be easier, since it can happen before the su call, and my guess would be that any regression would be minimal. /Alexander On October 28, 2018 5:21:38 PM GMT+01:0

Re: behaviour change with rc.subr using su -m

2018-10-28 Thread Sebastien Marie
On Sun, Oct 28, 2018 at 05:21:38PM +0100, Antoine Jacoutot wrote: > > Thinking about it I wonder if this shouldn't just be "fixed" in the rc.d > script itself. it could, but I am expecting some others rc.d files to need the same "fix". > Manually running pg_ctl as root (from /root for example) w

Re: behaviour change with rc.subr using su -m

2018-10-28 Thread Antoine Jacoutot
On Sun, Oct 28, 2018 at 02:23:28PM +0100, Antoine Jacoutot wrote: > On Sun, Oct 28, 2018 at 02:20:48PM +0100, Sebastien Marie wrote: > > Hi, > > > > I just noted a behaviour change with the latest change on rc.subr: > > > > date: 2018/10/16 07:07:05; author: ajacoutot; state: Exp; lines: +

Re: behaviour change with rc.subr using su -m

2018-10-28 Thread Antoine Jacoutot
On Sun, Oct 28, 2018 at 02:20:48PM +0100, Sebastien Marie wrote: > Hi, > > I just noted a behaviour change with the latest change on rc.subr: > > date: 2018/10/16 07:07:05; author: ajacoutot; state: Exp; lines: +2 > -2; commitid: y1bnk7UTLXqW0ZFW; > Change the way we call su(1) i

behaviour change with rc.subr using su -m

2018-10-28 Thread Sebastien Marie
Hi, I just noted a behaviour change with the latest change on rc.subr: date: 2018/10/16 07:07:05; author: ajacoutot; state: Exp; lines: +2 -2; commitid: y1bnk7UTLXqW0ZFW; Change the way we call su(1) in rcexec: - drop `-'l' to prevent simulating a full login and runni