|
Bugzilla – Full Text Bug Listing |
| Summary: | env_reset / always_set_home regression | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Phil Pennock <sudo-bz> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.4 | ||
| Hardware: | PC | ||
| OS: | FreeBSD | ||
| Attachments: | Fix for duplicate HOME when always_reset_home and !env_reset | ||
|
Description
Phil Pennock
2010-08-18 14:20:27 MDT
The HOME variable is being set but the old value is not being overwritten so you end up with two HOME variables in the environment. I've attached a patch that fixes this, Created attachment 286 [details]
Fix for duplicate HOME when always_reset_home and !env_reset
Oh indeed. The shell is de-duping and so for zsh, the original is kept, whereas FreeBSD /bin/sh is keeping the new value. Ugh. sudo /usr/bin/env proves it; thanks for the speedy diagnosis! Patch confirmed to work for me. Fixed in sudo 1.7.4p3, available now. |