Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. --- vdr-plugin-osdteletext-0.9.0.orig/txtrecv.c
  2. +++ vdr-plugin-osdteletext-0.9.0/txtrecv.c
  3. @@ -27,7 +27,7 @@
  4. #include <sys/stat.h>
  5. #include <fcntl.h>
  6.  
  7. -const char *RootDir::root = "/var/cache/vdr/vtx";
  8. +const char *RootDir::root = "/var/run/vdr/vtx";
  9.  
  10. void RootDir::setRootDir(const char *newRoot) {
  11. root=newRoot;
  12. @@ -56,8 +56,9 @@ int Storage::doCleanUp() {
  13. }
  14. closedir(top);
  15. } else {
  16. - esyslog("OSD-Teletext: Error opening teletext storage directory \"%s\": %s", root, strerror(errno));
  17. - }
  18. + if (!MakeDirs(root, 1)) {
  19. + esyslog("OSD-Teletext: Error creating teletext storage directory \"%s\": %s", root, strerror(errno));
  20. + }
  21. return pagesDeleted;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement