From dd358e9930776f917585708e437d4a69063e339c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 29 Dec 2001 00:33:59 +0000 Subject: 2001-12-28 Roland McGrath * storeinfo.c (main): Pass STORE_NO_FILEIO to store_create. --- utils/storeinfo.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'utils/storeinfo.c') 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 @@ -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); -- cgit v1.2.3