From: Eric Bollengier Date: Wed, 23 Mar 2022 10:08:10 +0000 (+0100) Subject: cdp: Add file modification detection to windows implemtation X-Git-Tag: Beta-15.0.0~616 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78c3aebbc7f0809e015f59398c8bc46903bcf019;p=thirdparty%2Fbacula.git cdp: Add file modification detection to windows implemtation --- diff --git a/bacula/src/tools/cdp-client/folderwatcher.cpp b/bacula/src/tools/cdp-client/folderwatcher.cpp index e0d640383..ec44980ec 100644 --- a/bacula/src/tools/cdp-client/folderwatcher.cpp +++ b/bacula/src/tools/cdp-client/folderwatcher.cpp @@ -249,7 +249,7 @@ FolderWatcher::~FolderWatcher() } } -#else +#else // HAVE_WIN32 BOOL IsDirectory(LPCTSTR szPath) { @@ -281,7 +281,7 @@ void *thread_watcher(void *arg) { if (!ReadDirectoryChangesW(watcher->_dirHandle, (LPVOID) pBuffer, bsize, true, - FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_LAST_WRITE, + FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_SIZE, &dwBytesReturned, &overlapped, NULL)) {