summaryrefslogtreecommitdiffstats
path: root/sbin/dumpon/dumpon.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dumpon/dumpon.c')
-rw-r--r--sbin/dumpon/dumpon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c
index a0b9114..97976ca 100644
--- a/sbin/dumpon/dumpon.c
+++ b/sbin/dumpon/dumpon.c
@@ -84,9 +84,9 @@ main(int argc, char *argv[])
if (fd < 0)
err(EX_OSFILE, "%s", argv[0]);
u = 0;
- i = ioctl(fd, DIOCGKERNELDUMP, &u);
+ i = ioctl(fd, DIOCSKERNELDUMP, &u);
u = 1;
- i = ioctl(fd, DIOCGKERNELDUMP, &u);
+ i = ioctl(fd, DIOCSKERNELDUMP, &u);
if (i == 0 && verbose)
printf("kernel dumps on %s\n", argv[0]);
@@ -95,12 +95,12 @@ main(int argc, char *argv[])
if (fd < 0)
err(EX_OSFILE, "%s", _PATH_DEVNULL);
u = 0;
- i = ioctl(fd, DIOCGKERNELDUMP, &u);
+ i = ioctl(fd, DIOCSKERNELDUMP, &u);
if (i == 0 && verbose)
printf("kernel dumps disabled\n");
}
if (i < 0)
- err(EX_OSERR, "ioctl(DIOCGKERNELDUMP)");
+ err(EX_OSERR, "ioctl(DIOCSKERNELDUMP)");
exit (0);
}
OpenPOWER on IntegriCloud