merged in geteuid-fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1233 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -163,7 +163,7 @@ main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'u' :
|
case 'u' :
|
||||||
if (geteuid () != 0) {
|
if (getuid () != 0) {
|
||||||
fprintf (stderr, "%s: Only root can change OTPs for other users\n",
|
fprintf (stderr, "%s: Only root can change OTPs for other users\n",
|
||||||
prog);
|
prog);
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user