backout r1.86 "login class routing table should be honored when doing
authorsthen <sthen@openbsd.org>
Sat, 19 Mar 2022 10:28:38 +0000 (10:28 +0000)
committersthen <sthen@openbsd.org>
Sat, 19 Mar 2022 10:28:38 +0000 (10:28 +0000)
a full login with su -l", it breaks rc.d(8) daemon_rtable

usr.bin/su/su.c

index 69774d1..fb748b8 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: su.c,v 1.86 2022/03/15 17:13:50 solene Exp $  */
+/*     $OpenBSD: su.c,v 1.87 2022/03/19 10:28:38 sthen Exp $   */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -355,8 +355,6 @@ main(int argc, char **argv)
                        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;
        }