diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-26 15:13:19 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-03-06 09:19:09 +0100 |
commit | 3a4e47d41c7db9b6ab047889acfb3869e91e9d1c (patch) | |
tree | c5b78f2ef4bcbad114fe60227fd52562d467b5dd /bin | |
parent | e5acf7ea43fa10a901edbb8eb44d950c22698970 (diff) | |
download | ptxdist-3a4e47d41c7db9b6ab047889acfb3869e91e9d1c.tar.gz ptxdist-3a4e47d41c7db9b6ab047889acfb3869e91e9d1c.tar.xz |
add ptxsudo alias to ptxdist bash
When using 'ptxdist bash' some tools installed by ptxdist may have to be
used as root. some sudo installations do not pass through the PATH environment
variable so that 'sudo <somecommand-in-sysroot-host>' results in command not
found error messages. This patch adds a ptxsudo alias that can be used in such
situations. The name has been chosen rather than regular 'sudo' since the
said feature is a security feature protecting against path spoofing which
we do not want to disable silently.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 893c6382b..14e94456e 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1719,6 +1719,7 @@ parse_second() . ~/.bashrc PS1="[ptx] \${PS1}" PATH="${PATH}" +alias ptxsudo='sudo env PATH=$PATH' EOF "${BASH}" --init-file "${bashrc}" else |