Summary: | /etc/profile checks that user is called root, instead of checking uid 0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yosef Meller <yosefm> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Test for $UID instead of `whoami` |
Description
Yosef Meller
2005-02-08 10:33:05 UTC
Created attachment 50755 [details, diff]
Test for $UID instead of `whoami`
looks like your patch is reversed and against baselayout-1.9.x ... baselayout-1.11.x does this correctly: if [ "$EUID" = 0 ] || [ "`/bin/whoami`" = 'root' ]; then |