summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-02-04 12:36:32 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2001-02-04 12:36:32 +0100
commit1c81b279eed647bbe938a2e89a66ce6e0d3d2121 (patch)
treec9e7bc225cc2203e32dee16a70a6986f8b580928 /tools.c
parent2adfad282320b6a6b116284507aac870d536a69a (diff)
downloadvdr-1c81b279eed647bbe938a2e89a66ce6e0d3d2121.tar.gz
vdr-1c81b279eed647bbe938a2e89a66ce6e0d3d2121.tar.bz2
Automatically removing deleted recordings after a while
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools.c b/tools.c
index cd2c60f8..9546dd11 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 1.27 2001/01/13 15:35:02 kls Exp $
+ * $Id: tools.c 1.28 2001/02/04 11:27:49 kls Exp $
*/
#define _GNU_SOURCE
@@ -237,8 +237,10 @@ bool RemoveFileOrDir(const char *FileName, bool FollowSymlinks)
}
}
dsyslog(LOG_INFO, "removing %s", FileName);
- if (remove(FileName) == 0)
- return true;
+ if (remove(FileName) < 0) {
+ LOG_ERROR_STR(FileName);
+ return false;
+ }
}
else if (errno != ENOENT) {
LOG_ERROR_STR(FileName);