summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2010-06-30 23:44:07 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2010-06-30 23:44:07 +0000
commit28f8754aa276663391d5587c26492366349d8038 (patch)
treea8ed50b466af5a93e15980a1026d07f33d5d0c5b /sbin
parent2d281c46cbff2638835aca2fc598878f56e1405a (diff)
allow uppercase A-F in the uid input
ok krw@ jsing@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/disklabel/disklabel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 844f554d1f4..8106f1d4a8e 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.165 2010/05/18 04:41:14 dlg Exp $ */
+/* $OpenBSD: disklabel.c,v 1.166 2010/06/30 23:44:06 halex Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -1005,6 +1005,8 @@ uid_parse(struct disklabel *lp, char *s)
c -= '0';
else if (c >= 'a' && c <= 'f')
c -= ('a' - 10);
+ else if (c >= 'A' && c <= 'F')
+ c -= ('A' - 10);
else
return -1;
uid[i / 2] <<= 4;