[ 1838018 ] "Forbid" to run JTAG tools with suid root

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@801 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent 666363cfe9
commit 7f38f9afe1

@ -310,6 +310,12 @@ main( int argc, const char **argv )
int norc = 0;
int help = 0;
int version = 0;
if(geteuid()==0 && getuid()!=0)
{
printf (_("'%s' must not be run suid root!\n"), PACKAGE);
return(-1);
};
#ifdef ENABLE_NLS
/* l10n support */

Loading…
Cancel
Save