* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34287 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-11-26 16:04:23 +00:00
parent 64266621a2
commit 880de4501c
+2 -2
View File
@@ -3,6 +3,7 @@
* Distributed under the terms of the MIT License.
*/
#include <BeOSBuildCompatibility.h>
#include "fs_impl.h"
@@ -515,7 +516,7 @@ open_file(const char *path, int openMode, int perms)
}
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 @@ open_file(const char *path, int openMode, int perms)
return error;
descriptor = new SymlinkDescriptor(normalizedPath.c_str());
} else {
// open the file
openMode &= ~O_NOTRAVERSE;