Remove unnecessary ruid==0 check
This is not necessary, as we checked it already on line 62.
This commit is contained in:
parent
41dfdb321f
commit
368026d4b4
1 changed files with 1 additions and 1 deletions
2
rdo.c
2
rdo.c
|
@ -87,7 +87,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
|
||||
int uid = p->pw_uid;
|
||||
if (uid != ruid && ruid != 0)
|
||||
if (uid != ruid)
|
||||
errx(1, "You are not allowed to execute rdo.");
|
||||
|
||||
struct spwd* shadowEntry = getspnam(p->pw_name);
|
||||
|
|
Loading…
Add table
Reference in a new issue