1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Fix link insertion/deletion when OPKs are overwritten from SSH/FTP

This commit is contained in:
Paul Cercueil
2013-07-18 19:28:44 -04:00
parent 91f381fa07
commit cc869c07a8
2 changed files with 7 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ static void * inotify_thd(void *p)
}
wd = inotify_add_watch(fd, path, IN_MOVED_FROM | IN_MOVED_TO |
IN_CLOSE_WRITE | IN_DELETE);
IN_CLOSE_WRITE | IN_DELETE | IN_CREATE);
if (wd == -1) {
ERROR("Unable to add inotify watch\n");
close(fd);
@@ -48,7 +48,8 @@ static void * inotify_thd(void *p)
SDL_UserEvent e = {
.type = SDL_USEREVENT,
.code = (int) (event.mask & (IN_MOVED_TO | IN_CLOSE_WRITE)),
.code = (int) (event.mask &
(IN_MOVED_TO | IN_CLOSE_WRITE | IN_CREATE)),
.data1 = strdup(buf),
.data2 = NULL,
};