wok rev 12088

busybox: su should not chdir (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 10 09:31:50 2012 +0100 (2012-03-10)
parents 5b6655a12e15
children 30e1308b918c
files busybox/stuff/busybox-1.18-su-nochdir.u
line diff
     1.1 --- a/busybox/stuff/busybox-1.18-su-nochdir.u	Fri Mar 09 22:19:09 2012 -0500
     1.2 +++ b/busybox/stuff/busybox-1.18-su-nochdir.u	Sat Mar 10 09:31:50 2012 +0100
     1.3 @@ -36,7 +36,7 @@
     1.4   			((flags & SU_OPT_l) / SU_OPT_l * SETUP_ENV_CLEARENV)
     1.5  -			+ (!(flags & SU_OPT_mp) * SETUP_ENV_CHANGEENV),
     1.6  +			+ (!(flags & SU_OPT_mp) * SETUP_ENV_CHANGEENV)
     1.7 -+			+ SETUP_ENV_NO_CHDIR,
     1.8 ++			+ (!(flags & SU_OPT_l) * SETUP_ENV_NO_CHDIR),
     1.9   			pw);
    1.10   	IF_SELINUX(set_current_security_context(NULL);)
    1.11