Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt Report the argument instead of (null) when opendisk...
details: https://anonhg.NetBSD.org/src/rev/b795ba5f4872
branches: trunk
changeset: 333809:b795ba5f4872
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Mon Nov 17 07:11:18 2014 +0000
description:
Report the argument instead of (null) when opendisk fails.
diffstat:
sbin/gpt/gpt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 9e811a44fff6 -r b795ba5f4872 sbin/gpt/gpt.c
--- a/sbin/gpt/gpt.c Mon Nov 17 07:11:00 2014 +0000
+++ b/sbin/gpt/gpt.c Mon Nov 17 07:11:18 2014 +0000
@@ -35,7 +35,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.36 2014/10/04 01:00:42 christos Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.37 2014/11/17 07:11:18 mlelstv Exp $");
#endif
#include <sys/param.h>
@@ -563,7 +563,7 @@
mode = readonly ? O_RDONLY : O_RDWR|O_EXCL;
- device_arg = dev;
+ device_arg = device_name = dev;
fd = opendisk(dev, mode, device_path, sizeof(device_path), 0);
if (fd == -1)
return -1;
Home |
Main Index |
Thread Index |
Old Index