autologin.c 251 B

12345678910
  1. // This file is part of the OpenADK project. OpenADK is copyrighted
  2. // material, please see the LICENCE file in the top-level directory.
  3. #include <unistd.h>
  4. #include <stdio.h>
  5. int main()
  6. {
  7. return execlp("login\0","login\0","-f\0", "root\0" ,0);
  8. }