# HG changeset patch # User Mike Becker # Date 1595691771 -7200 # Node ID bb512754aaf3c793b9909a804b59a95d264fb312 # Parent 68018eac46c3f3b8bd68667ad409277fb6699877 fixes error message when directory access fails diff -r 68018eac46c3 -r bb512754aaf3 src/scanner.c --- a/src/scanner.c Thu Aug 23 19:45:36 2018 +0200 +++ b/src/scanner.c Sat Jul 25 17:42:51 2020 +0200 @@ -49,8 +49,8 @@ struct stat statbuf; if ((dirf = opendir(scanner.dir)) == NULL) { - printf("%s", scanner.dir); - perror(" Directory access failed"); + fprintf(stderr, "%s - ", scanner.dir); + perror("Directory access failed"); return 0; }