From 8f4a18acf5a40fcaa04c7d6af0b8143cc2bb073f Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 16 Jun 2012 11:30:24 +0200 Subject: [PATCH] moviebrowser.cpp: delFile: revert to unlink() Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/41f365f3087e9ba081ab6b80326a0dfdb495c0df Author: Jacek Jendrzej Date: 2012-06-16 (Sat, 16 Jun 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/moviebrowser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index c8d8fdef5..5b4f8e2d1 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -2575,10 +2575,10 @@ bool CMovieBrowser::delFile_vlc(CFile& /*file*/) bool CMovieBrowser::delFile_std(CFile& file) { bool result = true; - char buf[FILENAME_MAX]={0}; - snprintf(buf,sizeof(buf), "nice -n 20 rm -f \"%s\" &", file.Name.c_str()); - system(buf); + int errno = unlink(file.Name.c_str()); TRACE(" delete file: %s\r\n",file.Name.c_str()); + if(errno) + result = false; return(result); }