Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt automatically enforce readonly for the commands tha...
details: https://anonhg.NetBSD.org/src/rev/3b200b2faa7f
branches: trunk
changeset: 341980:3b200b2faa7f
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 01 16:33:55 2015 +0000
description:
automatically enforce readonly for the commands that don't need to write.
diffstat:
sbin/gpt/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 800f78d1b530 -r 3b200b2faa7f sbin/gpt/main.c
--- a/sbin/gpt/main.c Tue Dec 01 16:32:19 2015 +0000
+++ b/sbin/gpt/main.c Tue Dec 01 16:33:55 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.3 2015/12/01 16:32:19 christos Exp $ */
+/* $NetBSD: main.c,v 1.4 2015/12/01 16:33:55 christos Exp $ */
/*-
* Copyright (c) 2002 Marcel Moolenaar
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifdef __RCSID
-__RCSID("$NetBSD: main.c,v 1.3 2015/12/01 16:32:19 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.4 2015/12/01 16:33:55 christos Exp $");
#endif
#include <stdio.h>
@@ -197,7 +197,7 @@
prefix(cmd);
- gpt = gpt_open(dev, flags, verbose, mediasz, secsz);
+ gpt = gpt_open(dev, flags | cmdsw[i]->flags, verbose, mediasz, secsz);
if (gpt == NULL)
return EXIT_FAILURE;
Home |
Main Index |
Thread Index |
Old Index