summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-12-29 00:33:59 +0000
committerRoland McGrath <roland@gnu.org>2001-12-29 00:33:59 +0000
commitdd358e9930776f917585708e437d4a69063e339c (patch)
tree3834d3037a9106aabce8b7d29b77a2eebef2482b /utils
parente251acc12f50473729daa7c1b1890f1c050063c0 (diff)
2001-12-28 Roland McGrath <roland@frob.com>
* storeinfo.c (main): Pass STORE_NO_FILEIO to store_create.
Diffstat (limited to 'utils')
-rw-r--r--utils/storeinfo.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/utils/storeinfo.c b/utils/storeinfo.c
index d088a9fd..d355ca27 100644
--- a/utils/storeinfo.c
+++ b/utils/storeinfo.c
@@ -1,6 +1,6 @@
/* Show where a file exists
- Copyright (C) 1995,96,97,98,99 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,99,2001 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
@@ -191,7 +191,7 @@ print_store (struct store *store, int level, unsigned what)
}
int
-main(int argc, char *argv[])
+main (int argc, char *argv[])
{
int deref = 0, print_prefix = -1;
unsigned what = 0;
@@ -213,7 +213,12 @@ main(int argc, char *argv[])
if (what == 0)
what = W_ALL;
- err = store_create (file, STORE_INACTIVE, 0, &store);
+ /* The STORE_NO_FILEIO flag tells it to give us the special
+ "unknown" class instead of an error if it cannot parse the
+ file_get_storage_info results. That will allow us to display
+ what we can from them, i.e. the name that shows at least some
+ of what the unknown data looked like. */
+ err = store_create (file, STORE_INACTIVE|STORE_NO_FILEIO, 0, &store);
if (err)
error (4, err, source);