Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e51a94c
)
b=9780
author
green
<green>
Thu, 5 Jan 2006 21:45:29 +0000
(21:45 +0000)
committer
green
<green>
Thu, 5 Jan 2006 21:45:29 +0000
(21:45 +0000)
Check that we actually encountered a symlink before returning error.
libsysio/src/open.c
patch
|
blob
|
history
diff --git
a/libsysio/src/open.c
b/libsysio/src/open.c
index
11516cb
..
2542d94
100644
(file)
--- a/
libsysio/src/open.c
+++ b/
libsysio/src/open.c
@@
-113,7
+113,7
@@
_sysio_open(struct pnode *pno, int flags, mode_t mode)
else if (!ino)
err = _sysio_p_validate(pno, NULL, NULL);
#ifdef O_NOFOLLOW
- else if (flags & O_NOFOLLOW)
+ else if (flags & O_NOFOLLOW
&& S_ISLNK(ino->i_stbuf.st_mode)
)
err = -ELOOP;
#endif
else {