Module Name: src
Committed By: mlelstv
Date: Mon Nov 17 07:11:18 UTC 2014
Modified Files:
src/sbin/gpt: gpt.c
Log Message:
Report the argument instead of (null) when opendisk fails.
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sbin/gpt/gpt.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/gpt/gpt.c
diff -u src/sbin/gpt/gpt.c:1.36 src/sbin/gpt/gpt.c:1.37
--- src/sbin/gpt/gpt.c:1.36 Sat Oct 4 01:00:42 2014
+++ src/sbin/gpt/gpt.c Mon Nov 17 07:11:18 2014
@@ -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 @@ gpt_open(const char *dev)
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;