"Fossies" - the Fresh Open Source Software Archive

Member "leafnode-1.12.0/amiroot.c" (30 Jan 2009, 280 Bytes) of package /linux/misc/leafnode-1.12.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "amiroot.c" see the Fossies "Dox" file reference documentation.

    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 }