From: Eric Sandeen Date: Tue, 3 Sep 2002 16:53:43 +0000 (+0000) Subject: Allow xfs_db to write negative numbers X-Git-Tag: v2.4.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75efd6ca976e0d5acb996d9a45069f0158c26710;p=thirdparty%2Fxfsprogs-dev.git Allow xfs_db to write negative numbers --- diff --git a/VERSION b/VERSION index 5acbc3844..c736b5917 100644 --- a/VERSION +++ b/VERSION @@ -3,5 +3,5 @@ # PKG_MAJOR=2 PKG_MINOR=3 -PKG_REVISION=0 +PKG_REVISION=1 PKG_BUILD=0 diff --git a/db/write.c b/db/write.c index 549fce80c..cfbdcb24a 100644 --- a/db/write.c +++ b/db/write.c @@ -501,12 +501,14 @@ convert_arg( } return buf; - } else if (arg[0] == '#' || strchr(arg,'-')) { + } else if (arg[0] == '#' || ((arg[0] != '-') && strchr(arg,'-'))) { /* * handle hex blocks ie * #00112233445566778899aabbccddeeff * and uuids ie * 1122334455667788-99aa-bbcc-ddee-ff00112233445566778899 + * + * (but if it starts with "-" assume it's just an integer) */ int bytes=bit_length/8; diff --git a/doc/CHANGES b/doc/CHANGES index b3c68a3cc..37e258155 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,3 +1,6 @@ +xfsprogs-2.3.1 (03 September 2002) + - Allow xfs_db to accept negative numbers when writing values. + xfsprogs-2.3.0 (03 September 2002) - Several changes to geometry ioctl callers which will make the tools useable on older kernel versions too.