From 786f37d22d744cf02f15ce6e2a6a40b76ed7374c Mon Sep 17 00:00:00 2001 From: Michael Ploujnikov Date: Wed, 8 Jan 2014 23:21:18 -0500 Subject: [PATCH] Typo in print format. This causes a segfault when addwatch fails due to a disappeared directory. Eg: often caused by a race condition with a short lived directory created by Firefox' safebrowsing subsystem: ~/.cache/mozilla/firefox/pr0f1l3.default/safebrowsing-to_delete/ --- inotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inotify.c b/inotify.c index 335225a..875e364 100644 --- a/inotify.c +++ b/inotify.c @@ -143,7 +143,7 @@ l_addwatch( lua_State *L ) printlogf( L, "Inotify", - "addwatch( %s )-> % d; err= %d : %s", + "addwatch( %s )-> %d; err= %d : %s", path, wd, errno, strerror( errno ) ); }