Bug 537

Summary: env_keep no longer works in 1.8.4
Product: Sudo Reporter: Gary van der Merwe <garyvdm>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: VERIFIED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.4   
Hardware: PC   
OS: Linux   

Description Gary van der Merwe 2012-02-20 14:31:47 MST
Vars in env_keep (e.g. HOME) are now longer kept. I've tested this to be a regression between 1.8.3.p2 and 1.8.4.

Steps to reproduce:

* Ensure that HOME is included in env_keep in the sudoers file.
* Run "sudo env | grep HOME"

Actual Result:
HOME=/root

Expected Result:
HOME=/home/garyvdm

I'm using binaries from Arch linux. I checked the PKGBUILD file, and they carry no patches.
Comment 1 Todd C. Miller 2012-02-21 06:02:00 MST
There was a bug in sudo 1.8.4 on some platforms related to the += and -= operations.  This has been fixed in sudo 1.8.4p1 which is available now.
Comment 2 Gary van der Merwe 2012-02-22 02:59:53 MST
I tested the new version and it is fixed. Thank you for such a quick response.