From 8222c45ebb8089eca42a153bfc8b87edb713b37e Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sat, 19 Jan 2013 17:26:55 +0100 Subject: [PATCH] Fixes the suggested exclude rule for directory removing the ending double slash. --- scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan.c b/scan.c index a364e61c..270debc0 100644 --- a/scan.c +++ b/scan.c @@ -443,7 +443,7 @@ static void scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, i d = opendir(dir); if (!d) { fprintf(stderr, "Error opening directory '%s'. %s.\n", dir, strerror(errno)); - fprintf(stderr, "You can exclude it in the config file with:\n\texclude /%s/\n", sub); + fprintf(stderr, "You can exclude it in the config file with:\n\texclude /%s\n", sub); exit(EXIT_FAILURE); } @@ -459,7 +459,7 @@ static void scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, i dd = readdir(d); if (dd == 0 && errno != 0) { fprintf(stderr, "Error reading directory '%s'. %s.\n", dir, strerror(errno)); - fprintf(stderr, "You can exclude it in the config file with:\n\texclude /%s/\n", sub); + fprintf(stderr, "You can exclude it in the config file with:\n\texclude /%s\n", sub); exit(EXIT_FAILURE); } if (dd == 0 && errno == 0) {