CVSROOT:        /cvs
Module name:    src
Changes by:     mill...@cvs.openbsd.org 2022/03/20 17:24:03

Modified files:
        lib/libc/gen   : login_cap.c 

Log message:
setusercontext: only call setrtable(2) if "rtable" set explicitly.
When LOGIN_SETRTABLE is set in flags, only call setrtable(2) if
there is an "rtable" entry in login.conf.  Previously, a default
value of 0 was used if the capability was missing.  That had the
effect of resetting the rtable for every program that uses
setusercontext(3), even if a different rtable was chosen by, e.g.,
"route -T exec command".  OK deraadt@ matthieu@

Reply via email to