Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sbin/gpt/add.c,v rcsdiff: /ftp/cvs/cvsroot/src/sbin/gpt/add.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.27 retrieving revision 1.28 diff -u -p -r1.27 -r1.28 --- src/sbin/gpt/add.c 2014/09/30 17:59:59 1.27 +++ src/sbin/gpt/add.c 2015/11/29 00:14:46 1.28 @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: add.c,v 1.27 2014/09/30 17:59:59 christos Exp $"); +__RCSID("$NetBSD: add.c,v 1.28 2015/11/29 00:14:46 christos Exp $"); #endif #include @@ -272,11 +272,9 @@ cmd_add(int argc, char *argv[]) } while (optind < argc) { - fd = gpt_open(argv[optind++]); - if (fd == -1) { - warn("unable to open device '%s'", device_name); + fd = gpt_open(argv[optind++], 0); + if (fd == -1) continue; - } if (alignment % secsz != 0) { warnx("Alignment must be a multiple of sector size;");