mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-02-02 03:48:24 +00:00
This commit is contained in:
parent
542bcfa916
commit
20f24018dc
2
lsyncd.c
2
lsyncd.c
@ -934,7 +934,7 @@ void handle_event(lua_State *L, struct inotify_event *event) {
|
||||
}
|
||||
|
||||
/* and hands over to runner */
|
||||
lua_getglobal(L, "lsyncd_event");
|
||||
lua_getglobal(L, "lsyncd_inotify_event");
|
||||
switch(event_type) {
|
||||
case ATTRIB : lua_pushstring(L, "Attrib"); break;
|
||||
case MODIFY : lua_pushstring(L, "Modify"); break;
|
||||
|
@ -264,7 +264,7 @@ function Origin.delay(origin, ename, time, pathname, pathname2)
|
||||
-- events cancel each other
|
||||
log(NORMAL, "Nullfication: " ..newd.ename.." after "..
|
||||
oldd.ename.." on "..pathname)
|
||||
oldd.ename = "none"
|
||||
oldd.ename = "None"
|
||||
return
|
||||
elseif col == 0 then
|
||||
-- events tack
|
||||
@ -713,7 +713,7 @@ end
|
||||
-- @param filename string filename without path
|
||||
-- @param filename2
|
||||
--
|
||||
function lsyncd_event(ename, wd, isdir, time, filename, filename2)
|
||||
function lsyncd_inotify_event(ename, wd, isdir, time, filename, filename2)
|
||||
local ftype;
|
||||
if isdir then
|
||||
ftype = "directory"
|
||||
|
Loading…
x
Reference in New Issue
Block a user