]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Allow xfs_db to write negative numbers
authorEric Sandeen <sandeen@sgi.com>
Tue, 3 Sep 2002 16:53:43 +0000 (16:53 +0000)
committerEric Sandeen <sandeen@sgi.com>
Tue, 3 Sep 2002 16:53:43 +0000 (16:53 +0000)
VERSION
db/write.c
doc/CHANGES

diff --git a/VERSION b/VERSION
index 5acbc3844faef62c59eb30c0cd8948063b77613d..c736b5917db7c07b32a08835a9adfb3807f98adc 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -3,5 +3,5 @@
 #
 PKG_MAJOR=2
 PKG_MINOR=3
-PKG_REVISION=0
+PKG_REVISION=1
 PKG_BUILD=0
index 549fce80c04fd24d320297e99a5c277a9fc22ed2..cfbdcb24a99c6d544ce39a3766b097c694810db3 100644 (file)
@@ -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;
                 
index b3c68a3cc9d55861317059c4ce25541faf286c5e..37e258155443f9b988381bd75e389b717c3dc948 100644 (file)
@@ -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.