From c7a602f5d1e1109e341f25bad264a11f2beec9b3 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 6 May 2024 10:32:17 +0200 Subject: indexamajig: Avoid is_hdf5_file("-", ...) With thanks to biochem-fan. Fixes: https://github.com/taw10/crystfel/issues/12 --- src/indexamajig.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/indexamajig.c b/src/indexamajig.c index aa0db210..9416d234 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -1241,7 +1241,10 @@ int main(int argc, char *argv[]) return 1; } - if ( (args.filename != NULL) && is_hdf5_file(args.filename, &err) ) { + if ( (args.filename != NULL) + && (strcmp(args.filename, "-") != 0) + && is_hdf5_file(args.filename, &err) ) + { ERROR("Your input file appears to be an HDF5 file.\n"); ERROR("The input file should be a list of data files, not the " "data file itself.\n"); -- cgit v1.2.3