1 /* amiroot.c - A program that exits 0 (true) if euid == 0 2 * 3 * (C) 2001 by Matthias Andree 4 * redistributable under the Lesser GNU Public License v2.1, 5 * see the file COPYING.LGPL. 6 */ 7 8 #include <sys/types.h> 9 #include <unistd.h> 10 11 int 12 main(void) 13 { 14 return geteuid()? 1 : 0; 15 }