]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix mismatched if blocks in posixmodule.c.
authorSteve Dower <steve.dower@microsoft.com>
Thu, 8 Sep 2016 17:41:50 +0000 (10:41 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Thu, 8 Sep 2016 17:41:50 +0000 (10:41 -0700)
Modules/posixmodule.c

index a39ea651fd923d0d4e7d18fc86ce635cbfaf21cf..4f5ec99e4ad0b9b1ce1f64ae27f9494ca53fb092 100644 (file)
@@ -2068,9 +2068,8 @@ posix_do_stat(const char *function_name, path_t *path,
     Py_BEGIN_ALLOW_THREADS
     if (path->fd != -1)
         result = FSTAT(path->fd, &st);
-    else
 #ifdef MS_WINDOWS
-    if (follow_symlinks)
+    else if (follow_symlinks)
         result = win32_stat(path->wide, &st);
     else
         result = win32_lstat(path->wide, &st);