summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-02-07 16:08:13 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-02-07 16:08:13 +0100
commit8225d3758f31f63f420bef783db60b2a7dd1b31d (patch)
tree2c08e36b36a5afb1409fa487bdcbc7d74a0effec /tools.c
parent202a6b3072d996f05ab45c635c2e8108e7735025 (diff)
downloadvdr-8225d3758f31f63f420bef783db60b2a7dd1b31d.tar.gz
vdr-8225d3758f31f63f420bef783db60b2a7dd1b31d.tar.bz2
Modified EntriesOnSameFileSystem(), so that it returns 'true' if either of the given; changed handling the 'error' variable in cDirCopier
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.c b/tools.c
index 332fce42..5418f5e2 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.3 2014/03/22 14:22:55 kls Exp $
+ * $Id: tools.c 3.4 2015/02/07 16:07:22 kls Exp $
*/
#include "tools.h"
@@ -404,7 +404,7 @@ bool EntriesOnSameFileSystem(const char *File1, const char *File2)
}
else
LOG_ERROR_STR(File1);
- return false;
+ return true; // we only return false if both files actually exist and are in different file systems!
}
int FreeDiskSpaceMB(const char *Directory, int *UsedMB)