# HG changeset patch # User Pascal Bellard # Date 1331368310 -3600 # Node ID a4bd979a562b1a54201bdfb593fce318211b0cb9 # Parent 5b6655a12e155389718287157445c6d56ec33b23 busybox: su should not chdir (again) diff -r 5b6655a12e15 -r a4bd979a562b busybox/stuff/busybox-1.18-su-nochdir.u --- a/busybox/stuff/busybox-1.18-su-nochdir.u Fri Mar 09 22:19:09 2012 -0500 +++ b/busybox/stuff/busybox-1.18-su-nochdir.u Sat Mar 10 09:31:50 2012 +0100 @@ -36,7 +36,7 @@ ((flags & SU_OPT_l) / SU_OPT_l * SETUP_ENV_CLEARENV) - + (!(flags & SU_OPT_mp) * SETUP_ENV_CHANGEENV), + + (!(flags & SU_OPT_mp) * SETUP_ENV_CHANGEENV) -+ + SETUP_ENV_NO_CHDIR, ++ + (!(flags & SU_OPT_l) * SETUP_ENV_NO_CHDIR), pw); IF_SELINUX(set_current_security_context(NULL);)