artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b36dd1e
)
Fix incorrect comparison. Restores ability to edit 'p'.
author
krw
<krw@openbsd.org>
Sun, 22 Jan 2023 19:57:25 +0000
(19:57 +0000)
committer
krw
<krw@openbsd.org>
Sun, 22 Jan 2023 19:57:25 +0000
(19:57 +0000)
sbin/disklabel/editor.c
patch
|
blob
|
history
diff --git
a/sbin/disklabel/editor.c
b/sbin/disklabel/editor.c
index
cd1a13e
..
dbc73f6
100644
(file)
--- a/
sbin/disklabel/editor.c
+++ b/
sbin/disklabel/editor.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: editor.c,v 1.39
5 2023/01/21 16:20
:25 krw Exp $ */
+/* $OpenBSD: editor.c,v 1.39
6 2023/01/22 19:57
:25 krw Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <millert@openbsd.org>
@@
-1059,7
+1059,7
@@
getpartno(const struct disklabel *lp, const char *id, const char *action)
goto done;
}
- if (strlen(p) > 1 || *p < 'a' || *p >
=
maxpart || *p == 'c') {
+ if (strlen(p) > 1 || *p < 'a' || *p > maxpart || *p == 'c') {
fprintf(stderr, helpfmt, maxpart);
goto done;
}