fixes error message when directory access fails

Sat, 25 Jul 2020 17:42:51 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 25 Jul 2020 17:42:51 +0200
changeset 58
bb512754aaf3
parent 57
68018eac46c3
child 59
c5409c8be36f

fixes error message when directory access fails

src/scanner.c file | annotate | diff | comparison | revisions
--- 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;
   }
 

mercurial