#include #include #include #include #include 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; } vcs-git' href='ssh://git@git.mageia.org/software/drakx-backup-do-not-use' title='drakx-backup-do-not-use Git repository'/>
summaryrefslogtreecommitdiffstats