From 23ea3dcb48ea4ad8d07a3558742aef08faff0c94 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 22 Mar 2014 14:25:46 +0100 Subject: No longer logging an error message in DirSizeMB() if the given directory doesn't exist --- tools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools.c') diff --git a/tools.c b/tools.c index a2055ec8..332fce42 100644 --- a/tools.c +++ b/tools.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.c 3.2 2013/09/22 13:19:19 kls Exp $ + * $Id: tools.c 3.3 2014/03/22 14:22:55 kls Exp $ */ #include "tools.h" @@ -609,7 +609,7 @@ int DirSizeMB(const char *DirName) } return size; } - else + else if (errno != ENOENT) LOG_ERROR_STR(DirName); return -1; } -- cgit v1.2.3