gksudo -k does not perform as advertised

Bug #8995 reported by Sam Phillips
4
Affects Status Importance Assigned to Milestone
libgksu1.2 (Ubuntu)
Fix Released
Medium
Sebastien Bacher

Bug Description

When running gksudo with the -k command line option the program does not
maintain the user's environment in the subprocess.

Simple test:

---8<---
#!/bin/sh
# test.sh
echo "$HOME"

--->8---

gksudo -k ./test.sh
/root

This should return my HOME not root's.

Revision history for this message
Sebastien Bacher (seb128) wrote :

fixed upstream in the new 1.2.5 release

Revision history for this message
Sebastien Bacher (seb128) wrote :

 libgksu1.2 (1.2.5a-1ubuntu1) hoary; urgency=low
 .
   * Upload of the debian unstable version, the warty changes are included in
     the new upstream release:
     - no longer ignores context->keep_env when doing sudo stuff (Hoary: #2273).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.