Module Name: src Committed By: roy Date: Thu Aug 8 21:14:12 UTC 2019
Modified Files: src/sbin/reboot: reboot.c Log Message: reboot: fix arg order for logwtmpx(3) Matches the correct order from init(1). Thanks to Sascha Wildner <swild...@dragonflybsd.org> To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sbin/reboot/reboot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/reboot/reboot.c diff -u src/sbin/reboot/reboot.c:1.40 src/sbin/reboot/reboot.c:1.41 --- src/sbin/reboot/reboot.c:1.40 Sun Nov 4 22:28:16 2012 +++ src/sbin/reboot/reboot.c Thu Aug 8 21:14:12 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: reboot.c,v 1.40 2012/11/04 22:28:16 christos Exp $ */ +/* $NetBSD: reboot.c,v 1.41 2019/08/08 21:14:12 roy Exp $ */ /* * Copyright (c) 1980, 1986, 1993 @@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19 #if 0 static char sccsid[] = "@(#)reboot.c 8.1 (Berkeley) 6/5/93"; #else -__RCSID("$NetBSD: reboot.c,v 1.40 2012/11/04 22:28:16 christos Exp $"); +__RCSID("$NetBSD: reboot.c,v 1.41 2019/08/08 21:14:12 roy Exp $"); #endif #endif /* not lint */ @@ -169,7 +169,7 @@ main(int argc, char *argv[]) logwtmp("~", "shutdown", ""); #endif #ifdef SUPPORT_UTMPX - logwtmpx("~", "shutdown", "", INIT_PROCESS, 0); + logwtmpx("~", "shutdown", "", 0, INIT_PROCESS); #endif /*