]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix up ring command in xfs_db for its argument handling
authorTim Shimmin <tes@sgi.com>
Thu, 28 Sep 2006 03:56:37 +0000 (03:56 +0000)
committerTim Shimmin <tes@sgi.com>
Thu, 28 Sep 2006 03:56:37 +0000 (03:56 +0000)
of the index.
Merge of master-melb:xfs-cmds:27071a by kenmcd.

  Fix up ring command in xfs_db for its argument handling
  of the index.
  Fix from utako@tnes.nec.co.jp (Utako Kusaka).

db/io.c
doc/CHANGES

diff --git a/db/io.c b/db/io.c
index 979ac1d7709a475cb1254c78054978dadf2b1db5..368d1360c07f984ee25bb3e8b9a547496621ea5c 100644 (file)
--- a/db/io.c
+++ b/db/io.c
@@ -352,7 +352,7 @@ ring_f(
                return 0;
        }
 
-       index = (int)strtoul(argv[0], NULL, 0);
+       index = (int)strtoul(argv[1], NULL, 0);
        if (index < 0 || index >= RING_ENTRIES)
                dbprintf("invalid entry: %d\n", index);
 
index f7fc8545cc41ae77c8fc1abc39d6e0c0f037c906..5c390754243a110fc05cce7c559d24e751ae2e6f 100644 (file)
@@ -1,3 +1,7 @@
+xfsprogs-2.8.xx (??)
+       - Fix up the ring command in xfs_db,
+         thanks to Utako Kusaka
+
 xfsprogs-2.8.13 (21 September 2006)
        - Fix v2 directory checking with holes and unreadable blocks.
        - Fix a memory leak in dir2 checking.