From 14e0e4a072009887181b6cdee32ecd23f01c9c49 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 12 Mar 2015 16:25:32 +0100 Subject: [PATCH] Win32: More reserved file names to ignore, including Recycle Bin Addresses #2955 --- csync/src/csync_exclude.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/csync/src/csync_exclude.c b/csync/src/csync_exclude.c index 198389ac7..f17e09744 100644 --- a/csync/src/csync_exclude.c +++ b/csync/src/csync_exclude.c @@ -151,11 +151,12 @@ CSYNC_EXCLUDE_TYPE csync_excluded(CSYNC *ctx, const char *path, int filetype) { return match; } -// See http://support.microsoft.com/kb/74496 -static const char *win_reserved_words[] = {"CON","PRN","AUX", "NUL", - "COM1", "COM2", "COM3", "COM4", - "LPT1", "LPT2", "LPT3", "CLOCK$" }; - +// See http://support.microsoft.com/kb/74496 and +// https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx +// Additionally, we ignore '$Recycle.Bin', see https://github.com/owncloud/client/issues/2955 +static const char* win_reserved_words[] = {"CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", + "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", + "LPT5", "LPT6", "LPT7", "LPT8", "LPT9", "CLOCK$", "$Recycle.Bin" }; bool csync_is_windows_reserved_word(const char* filename) { -- 2.30.2