]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dvr inotify: fix my last change, fixes #4702
authorJaroslav Kysela <perex@perex.cz>
Wed, 8 Nov 2017 16:59:28 +0000 (17:59 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 3 Sep 2018 13:37:42 +0000 (15:37 +0200)
src/dvr/dvr_inotify.c

index 7116b7d8a7726d7c92fa6e9fabc3f13d6685554e..5d7a41a80bf3fb5413a0fc8daaef944bce993bda 100644 (file)
@@ -283,7 +283,7 @@ _dvr_inotify_moved
         dir = tvh_strdupa(filename);
         dir = dirname(dir);
         if (realpath(dir, realdir)) {
-          file = basename(file);
+          file = basename(tvh_strdupa(filename));
           snprintf(new_path, sizeof(new_path), "%s/%s", realdir, file);
           if (!strcmp(path, new_path))
             break;