diff options
author | Mystery Man <unknown@mandriva.org> | 2005-04-05 19:41:54 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2005-04-05 19:41:54 +0000 |
commit | 1d9a4b73a37c6e942f909c2d42ca13b5c47e8362 (patch) | |
tree | 5bab4266bc57a31d97ac6a8badc2ede721a42c9c /move/runlevel_set.c | |
parent | 4691e29d1228b10abbe586c5ecb87ec9e13bd3ec (diff) | |
download | drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.tar drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.tar.gz drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.tar.bz2 drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.tar.xz drakx-backup-do-not-use-1d9a4b73a37c6e942f909c2d42ca13b5c47e8362.zip |
This commit was manufactured by cvs2svn to create tag 'V10_2_20mdk'.V10_2_20mdk
Diffstat (limited to 'move/runlevel_set.c')
-rw-r--r-- | move/runlevel_set.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/move/runlevel_set.c b/move/runlevel_set.c deleted file mode 100644 index 94f7b5933..000000000 --- a/move/runlevel_set.c +++ /dev/null @@ -1,25 +0,0 @@ -#include <stdlib.h> -#include <unistd.h> -#include <stdio.h> -#include <string.h> -#include <utmp.h> - -int main(int argc, char **argv) -{ - struct utmp utmp; - - if (argc <= 1) { - fprintf(stderr, "need an argument\n"); - return 1; - } - - memset(&utmp, 0, sizeof(utmp)); - utmp.ut_type = RUN_LVL; - utmp.ut_pid = argv[1][0]; - - setutent(); - pututline(&utmp); - endutent(); - - return 0; -} |