File: amiroot.c

package info (click to toggle)
leafnode 1.12.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,488 kB
  • sloc: ansic: 10,961; sh: 1,738; xml: 627; makefile: 258; perl: 84; sed: 4
file content (15 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* amiroot.c - A program that exits 0 (true) if euid == 0
 *
 * (C) 2001 by Matthias Andree
 * redistributable under the Lesser GNU Public License v2.1,
 * see the file COPYING.LGPL.
 */

#include <sys/types.h>
#include <unistd.h>

int
main(void)
{
    return geteuid()? 1 : 0;
}