[haiku-commits] r34287 - haiku/trunk/src/build/libroot

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 26 Nov 2009 17:04:23 +0100 (CET)

Author: axeld
Date: 2009-11-26 17:04:23 +0100 (Thu, 26 Nov 2009)
New Revision: 34287
Changeset: http://dev.haiku-os.org/changeset/34287/haiku

Modified:
   haiku/trunk/src/build/libroot/fs.cpp
Log:
* Minor cleanup.


Modified: haiku/trunk/src/build/libroot/fs.cpp
===================================================================
--- haiku/trunk/src/build/libroot/fs.cpp        2009-11-26 16:02:07 UTC (rev 
34286)
+++ haiku/trunk/src/build/libroot/fs.cpp        2009-11-26 16:04:23 UTC (rev 
34287)
@@ -3,6 +3,7 @@
  * Distributed under the terms of the MIT License.
  */
 
+
 #include <BeOSBuildCompatibility.h>
 
 #include "fs_impl.h"
@@ -515,7 +516,7 @@
        }
 
        Descriptor *descriptor;
-       if (exists && S_ISLNK(st.st_mode) && (openMode & O_NOTRAVERSE)) {
+       if (exists && S_ISLNK(st.st_mode) && (openMode & O_NOTRAVERSE) != 0) {
                // a symlink not to be followed: create a special descriptor
                // normalize path first
                string normalizedPath;
@@ -524,7 +525,6 @@
                        return error;
                
                descriptor = new SymlinkDescriptor(normalizedPath.c_str());
-       
        } else {
                // open the file
                openMode &= ~O_NOTRAVERSE;


Other related posts:

  • » [haiku-commits] r34287 - haiku/trunk/src/build/libroot - axeld