2003-07-02 12:53:21

by Mikael Starvik

[permalink] [raw]
Subject: [PATCH] Allow signed integers in kernelconfig

The following patch makes it possible to have signed integers
for kernel configuration parameters (this was allowed before
2.4.21).

/Mikael

diff -u -ru linux/scripts/Configure linux_patch/scripts/Configure
--- linux/scripts/Configure Fri Jun 13 16:51:39 2003
+++ linux_patch/scripts/Configure Wed Jul 2 14:43:19 2003
@@ -350,7 +350,7 @@
def=${old:-$3}
while :; do
readln "$1 ($2) [$def] " "$def" "$old"
- if expr "$ans" : '[0-9]*$' > /dev/null; then
+ if expr "$ans" : '[+-]\?[0-9]*$' > /dev/null; then
define_int "$2" "$ans"
break
else