1 |
/* Show where a file exists |
/* Show where a file exists |
2 |
|
|
3 |
Copyright (C) 1995,96,97,98,99 Free Software Foundation, Inc. |
Copyright (C) 1995,96,97,98,99,2001 Free Software Foundation, Inc. |
4 |
|
|
5 |
Written by Miles Bader <miles@gnu.org> |
Written by Miles Bader <miles@gnu.org> |
6 |
|
|
191 |
} |
} |
192 |
|
|
193 |
int |
int |
194 |
main(int argc, char *argv[]) |
main (int argc, char *argv[]) |
195 |
{ |
{ |
196 |
int deref = 0, print_prefix = -1; |
int deref = 0, print_prefix = -1; |
197 |
unsigned what = 0; |
unsigned what = 0; |
213 |
if (what == 0) |
if (what == 0) |
214 |
what = W_ALL; |
what = W_ALL; |
215 |
|
|
216 |
err = store_create (file, STORE_INACTIVE, 0, &store); |
/* The STORE_NO_FILEIO flag tells it to give us the special |
217 |
|
"unknown" class instead of an error if it cannot parse the |
218 |
|
file_get_storage_info results. That will allow us to display |
219 |
|
what we can from them, i.e. the name that shows at least some |
220 |
|
of what the unknown data looked like. */ |
221 |
|
err = store_create (file, STORE_INACTIVE|STORE_NO_FILEIO, 0, &store); |
222 |
if (err) |
if (err) |
223 |
error (4, err, source); |
error (4, err, source); |
224 |
|
|