diff --git a/main.c b/main.c index c2a6a7b..e6d6663 100644 --- a/main.c +++ b/main.c @@ -731,10 +731,9 @@ int main(int argc, char *argv[]) struct stat infile_stat; stat(control.infile, &infile_stat); - if (unlikely(!S_ISREG(infile_stat.st_mode) && - !S_ISLNK(infile_stat.st_mode))) - failure("lrzip only works directly on FILES.\n" - "Use lrztar or pipe through tar for compressing directories.\n"); + if (unlikely(S_ISDIR(infile_stat.st_mode))) + failure("lrzip only works directly on FILES.\n" + "Use lrztar or pipe through tar for compressing directories.\n"); } }