=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/su/su.c,v retrieving revision 1.85 retrieving revision 1.86 diff -u -r1.85 -r1.86 --- src/usr.bin/su/su.c 2022/02/10 13:06:46 1.85 +++ src/usr.bin/su/su.c 2022/03/15 17:13:50 1.86 @@ -1,4 +1,4 @@ -/* $OpenBSD: su.c,v 1.85 2022/02/10 13:06:46 robert Exp $ */ +/* $OpenBSD: su.c,v 1.86 2022/03/15 17:13:50 solene Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. @@ -355,6 +355,8 @@ flags &= ~LOGIN_SETLOGIN; } else { flags = LOGIN_SETRESOURCES|LOGIN_SETGROUP|LOGIN_SETUSER; + if (!asme) + flags |= LOGIN_SETRTABLE; if (asthem) flags |= LOGIN_SETENV|LOGIN_SETPRIORITY|LOGIN_SETUMASK; }