Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1671475

Summary: devtoolset-7 sudo doesn't work with -E
Product: Red Hat Software Collections Reporter: Renato Botelho <rbgarga>
Component: devtoolset-7Assignee: Marek Polacek <mpolacek>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: alpha   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-31 17:35:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Renato Botelho 2019-01-31 16:34:47 UTC
Description of problem:
Together with devtoolset-7-gcc a shell script wrapper for sudo is installed under /opt/rh/devtoolset-7/root/usr/bin. This wrapper uses -E option to pass necessary environment vars to make sudo working as desired but if user pass -E argument for sudo it fails.

Version-Release number of selected component (if applicable):
7.1-4.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1.yum install devtoolset-7-gcc
2.scl enable devtoolset-7 bash
3.sudo -E ls

Actual results:
/var/tmp/scl8zRdWD: line 8: -E: command not found

Expected results:
ls output

Additional info:

Comment 2 Marek Polacek 2019-01-31 17:35:24 UTC

*** This bug has been marked as a duplicate of bug 1319936 ***