On Tue, 2019-03-19 at 18:48 +0900, YASUOKA Masahiko wrote:
> On Mon, 18 Mar 2019 22:07:58 +0100
> Pierre Emeriaud <[email protected]> wrote:
> > I don't know if this is a known/expected behavior or a bug, and I
> > wanted your input on this. This is on 6.4-stable.
>
> I posted the same behavior and a fix.
>
> https://marc.info/?l=openbsd-tech&m=155064058824272&w=2
>
What about doing this?
Index: rc.subr
===================================================================
RCS file: /cvs/src/etc/rc.d/rc.subr,v
retrieving revision 1.130
diff -u -p -r1.130 rc.subr
--- rc.subr 20 Jan 2019 04:52:07 -0000 1.130
+++ rc.subr 20 Mar 2019 08:47:55 -0000
@@ -320,5 +320,5 @@ unset _rcflags _rcrtable _rcuser _rctime
# make sure pexp matches the process (i.e. doesn't include the quotes)
pexp="$(eval echo ${daemon}${daemon_flags:+ ${daemon_flags}})"
rcexec="su -l -c ${daemon_class} -s /bin/sh ${daemon_user} -c"
-[ "${daemon_rtable}" -eq 0 ] ||
+[ "${daemon_rtable}" -eq "$(id -R)" ] ||
rcexec="route -T ${daemon_rtable} exec ${rcexec}"
--
Antoine