* fhandler.cc (fhandler_base::open): Remove HIDDEN_DOT_FILES code.

* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto.
	* path.cc (symlink_worker): Ditto.
This commit is contained in:
Corinna Vinschen
2007-08-12 15:42:02 +00:00
parent 88d6787f07
commit 87a7ae5e7f
4 changed files with 6 additions and 17 deletions

View File

@ -542,11 +542,6 @@ fhandler_base::open (int flags, mode_t mode)
/* If mode has no write bits set, we set the R/O attribute. */
if (!(mode & (S_IWUSR | S_IWGRP | S_IWOTH)))
file_attributes |= FILE_ATTRIBUTE_READONLY;
#ifdef HIDDEN_DOT_FILES
char *c = strrchr (get_win32_name (), '\\');
if ((c && c[1] == '.') || *get_win32_name () == '.')
file_attributes |= FILE_ATTRIBUTE_HIDDEN;
#endif
/* Starting with Windows 2000, when trying to overwrite an already
existing file with FILE_ATTRIBUTE_HIDDEN and/or FILE_ATTRIBUTE_SYSTEM
attribute set, CreateFile fails with ERROR_ACCESS_DENIED.