]> sourceware.org Git - newlib-cygwin.git/commitdiff
cygwin: Do not generate surrogate chars on netapp
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 24 Mar 2017 19:52:16 +0000 (20:52 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 24 Mar 2017 19:52:25 +0000 (20:52 +0100)
Just like Samba, Netapp FSes seem to dislike invalid surrogate usage in
filenames.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/syscalls.cc

index f8712e92d8cdcc47a44f00044afb96695f020641..faee928bff4a56fe84fac7698cc39ad4aee6c7f9 100644 (file)
@@ -373,7 +373,7 @@ try_to_bin (path_conv &pc, HANDLE &fh, ACCESS_MASK access, ULONG flags)
      names. */
   RtlAppendUnicodeToString (&recycler,
                            (pc.fs_flags () & FILE_UNICODE_ON_DISK
-                            && !pc.fs_is_samba ())
+                            && !pc.fs_is_samba () && !pc.fs_is_netapp ())
                            ? L".\xdc63\xdc79\xdc67" : L".cyg");
   pfii = (PFILE_INTERNAL_INFORMATION) infobuf;
   /* Note: Modern Samba versions apparently don't like buffer sizes of more
This page took 0.03422 seconds and 5 git commands to generate.