https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108276

--- Comment #2 from niXman <i.nixman at autistici dot org> ---
@Himal

```
+#ifdef _WIN32
+    if (stricmp (name, "nul") == 0)
+      return 1;
+#else
   struct stat st;

   if (lstat (name, &st) == 0
       && (S_ISREG (st.st_mode) || S_ISLNK (st.st_mode)))
     return unlink (name);
+#endif

```

I don't think the patch is correct because for WIN32 platform `unlink()` will
never be called even for non-"nul" files.

right?

Reply via email to