summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol/camcontrol.c
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-10-19 20:05:25 +0000
committerbrucec <brucec@FreeBSD.org>2010-10-19 20:05:25 +0000
commitf0ce9e3f305fe6039937eade02551429beef30ac (patch)
tree8e71c8b927a5a314a8b890ec223906bcd48e5ae4 /sbin/camcontrol/camcontrol.c
parent637883fc4e1ec3b88c5c13b8b1a273f70e123b37 (diff)
downloadFreeBSD-src-f0ce9e3f305fe6039937eade02551429beef30ac.zip
FreeBSD-src-f0ce9e3f305fe6039937eade02551429beef30ac.tar.gz
Stop disallowing device nodes to be passed to camcontrol(8) since libcam
already allows both device names and nodes to be specified. Reviewed by: avg
Diffstat (limited to 'sbin/camcontrol/camcontrol.c')
-rw-r--r--sbin/camcontrol/camcontrol.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 9f26906..b92cc4c1 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -4605,15 +4605,7 @@ main(int argc, char **argv)
char name[30];
int rv;
- /*
- * First catch people who try to do things like:
- * camcontrol tur /dev/da0
- * camcontrol doesn't take device nodes as arguments.
- */
- if (argv[2][0] == '/') {
- warnx("%s is not a valid device identifier", argv[2]);
- errx(1, "please read the camcontrol(8) man page");
- } else if (isdigit(argv[2][0])) {
+ if (isdigit(argv[2][0])) {
/* device specified as bus:target[:lun] */
rv = parse_btl(argv[2], &bus, &target, &lun, &arglist);
if (rv < 2)
OpenPOWER on IntegriCloud