]> code.delx.au - gnu-emacs/commitdiff
(init_environment): Remove EMACSLOCKDIR.
authorJason Rumney <jasonr@gnu.org>
Thu, 13 Jun 2002 20:41:33 +0000 (20:41 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 13 Jun 2002 20:41:33 +0000 (20:41 +0000)
(stat): Swap _S_IFDIR and _S_IFREG.

src/w32.c

index f4637721165a590adff9f58f8c706bbf5743785d..b789bb47e5273682126386249becbf441456132d 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -2206,7 +2206,7 @@ stat (const char * path, struct stat * buf)
     {
       /* Don't bother to make this information more accurate.  */
       buf->st_mode = (wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ?
-       _S_IFREG : _S_IFDIR;
+       _S_IFDIR : _S_IFREG;
       buf->st_nlink = 1;
       fake_inode = 0;
     }