Remove unused variable realuid from main().

This commit is contained in:
Petter Reinholdtsen 2014-02-07 06:57:11 +00:00
parent fb143cdcb9
commit a7bf0bf7e9

View File

@ -483,7 +483,6 @@ int main(int argc, char **argv)
struct stat st; struct stat st;
struct utmp *ut; struct utmp *ut;
time_t t; time_t t;
uid_t realuid;
char *halttype; char *halttype;
char *downusers[32]; char *downusers[32];
char buf[128]; char buf[128];
@ -499,7 +498,6 @@ int main(int argc, char **argv)
int user_ok = 0; int user_ok = 0;
/* We can be installed setuid root (executable for a special group) */ /* We can be installed setuid root (executable for a special group) */
realuid = getuid();
setuid(geteuid()); setuid(geteuid());
if (getuid() != 0) { if (getuid() != 0) {