summaryrefslogtreecommitdiffstats
path: root/move/runlevel_set.c
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-12-18 12:19:48 +0000
committerMystery Man <unknown@mandriva.org>2005-12-18 12:19:48 +0000
commitde25dab468737adae2c3f5d45a8bd7eb3fdc83e6 (patch)
tree874cebd5583c01c90ba083411b4b495dfb517b9a /move/runlevel_set.c
parent575a03f47cd0de3af62c1b2f2685324943feb08a (diff)
downloaddrakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.tar
drakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.tar.gz
drakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.tar.bz2
drakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.tar.xz
drakx-backup-do-not-use-de25dab468737adae2c3f5d45a8bd7eb3fdc83e6.zip
This commit was manufactured by cvs2svn to create tag 'V10_4_6_1mdk'.V10_4_6_1mdk
Diffstat (limited to 'move/runlevel_set.c')
-rw-r--r--move/runlevel_set.c25
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;
-}