Module Name: src Committed By: kre Date: Sun May 6 20:55:42 UTC 2018
Modified Files: src/sbin/cgdconfig: cgdconfig.c Log Message: Fix usage for rump. Fixes test breakage caused by previous commit. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sbin/cgdconfig/cgdconfig.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/cgdconfig/cgdconfig.c diff -u src/sbin/cgdconfig/cgdconfig.c:1.42 src/sbin/cgdconfig/cgdconfig.c:1.43 --- src/sbin/cgdconfig/cgdconfig.c:1.42 Sat May 5 11:28:44 2018 +++ src/sbin/cgdconfig/cgdconfig.c Sun May 6 20:55:42 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: cgdconfig.c,v 1.42 2018/05/05 11:28:44 kre Exp $ */ +/* $NetBSD: cgdconfig.c,v 1.43 2018/05/06 20:55:42 kre Exp $ */ /*- * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ #ifndef lint __COPYRIGHT("@(#) Copyright (c) 2002, 2003\ The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: cgdconfig.c,v 1.42 2018/05/05 11:28:44 kre Exp $"); +__RCSID("$NetBSD: cgdconfig.c,v 1.43 2018/05/06 20:55:42 kre Exp $"); #endif #include <err.h> @@ -523,10 +523,10 @@ configure(int argc, char **argv, struct cgu.cgu_unit = -1; if (prog_ioctl(fd, CGDIOCGET, &cgu) != -1 && cgu.cgu_dev != 0) { warnx("device %s already in use", *argv); - close(fd); + prog_close(fd); return -1; } - close(fd); + prog_close(fd); } if (argc == 2 || argc == 3) {