diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2008-11-22 11:18:54 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2008-11-22 11:18:54 +0000 |
commit | 03d285abac8003ad6bf77efe795437dcd6172d73 (patch) | |
tree | aa185bdf234dc3f3ada2615f7ad23760b12fa50c /usr.sbin/config | |
parent | 8c75a6308f70ba46b68f5539861220760f2a14dd (diff) |
Make enable selected by attribute work.
Reported by John Lloyd j at bitminer dot ca. -moj
Diffstat (limited to 'usr.sbin/config')
-rw-r--r-- | usr.sbin/config/cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/cmd.c b/usr.sbin/config/cmd.c index 0b9c5d63b22..46726a7800a 100644 --- a/usr.sbin/config/cmd.c +++ b/usr.sbin/config/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.14 2007/03/20 04:00:32 tedu Exp $ */ +/* $OpenBSD: cmd.c,v 1.15 2008/11/22 11:18:53 maja Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -25,7 +25,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: cmd.c,v 1.14 2007/03/20 04:00:32 tedu Exp $"; +static char rcsid[] = "$OpenBSD: cmd.c,v 1.15 2008/11/22 11:18:53 maja Exp $"; #endif #include <sys/types.h> @@ -158,7 +158,7 @@ Xenable(cmd_t *cmd) if (strlen(cmd->args) == 0) printf("Attr, DevNo or Dev expected\n"); else if (attr(cmd->args, &a) == 0) - common_attr(cmd->args, a, UC_DISABLE); + common_attr(cmd->args, a, UC_ENABLE); else if (number(cmd->args, &a) == 0) enable(a); else if (device(cmd->args, &a, &unit, &state) == 0) |