Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:badshah400:howdy
howdy
howdy-cli-py-getuid.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File howdy-cli-py-getuid.patch of Package howdy
--- a/src/cli.py 2021-07-03 20:01:41.443759578 +0200 +++ b/src/cli.py 2021-07-03 20:01:08.982829010 +0200 @@ -80,7 +80,7 @@ # Check if we have rootish rights # This is this far down the file so running the command for help is always possible -if os.getenv("SUDO_USER") is None: +if os.getenv("SUDO_USER") is None and os.getuid() != 0: print("Please run this command as root:\n") print("\tsudo howdy " + " ".join(sys.argv[1:])) sys.exit(1)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor