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:
5c83bec
)
b=10329
author
zhanghc
<zhanghc>
Wed, 29 Mar 2006 10:56:02 +0000
(10:56 +0000)
committer
zhanghc
<zhanghc>
Wed, 29 Mar 2006 10:56:02 +0000
(10:56 +0000)
DESCRIPTION:
When doing fcntl() file locking calls in a liblustre client via libsysio,
successful lock calls return random non-zero values due to use uninitialized
value as return value.
libsysio/src/fcntl.c
patch
|
blob
|
history
diff --git
a/libsysio/src/fcntl.c
b/libsysio/src/fcntl.c
index
68ce4de
..
22e0bcd
100644
(file)
--- a/
libsysio/src/fcntl.c
+++ b/
libsysio/src/fcntl.c
@@
-259,8
+259,7
@@
_sysio_vfcntl(int fd, int cmd, va_list ap)
fl64 = va_arg(ap, struct flock64 *);
err = _sysio_fcntl_lock(fil, cmd, fl64);
- if (err)
- rtn = -1;
+ rtn = err ? -1 : 0;
}
break;
#endif