]> git.ipfire.org Git - thirdparty/util-linux.git/commit - login-utils/su-common.c
su: don't modify PATH if -l not specified
authorKarel Zak <kzak@redhat.com>
Tue, 2 Oct 2012 08:14:05 +0000 (10:14 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Oct 2012 08:14:05 +0000 (10:14 +0200)
commit705ee62ff03a083ea7c06159420b7a71b0b20902
treeb3ac1bc99ace5c14c3dca6d52dafaa7a74632751
parentb83b9b11c2563e52280d041e9b18e7cc41561636
su: don't modify PATH if -l not specified

This patch reverts a6fdd3f8125be23930d955c2bc6b7a46cdaf8a12.

su(1) modifies PATH if:
  - option -l specified
  - ALWAYS_SET_PATH login.defs variable set

Reported-by: Thomas Bächler <thomas@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c