diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-02-22 05:25:30 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-22 09:22:05 -0800 |
commit | 991b61661d74de5b1349050308dbd131e0de607c (patch) | |
tree | 9daf91fd09bb805ab6140fcddb89db9dd4ce4cb2 /argp-standalone | |
parent | 21e4db42468d5bb7ebd9fa6a91461edd11b2a6da (diff) |
check the op_ret for less than zero in sp_create_cbk since posix can send negative values other than -1
posix can send -ve values other than -1 in create:
op_ret = setgid_override (this, real_path, &gid);
if (op_ret < 0) {
goto out;
}
In stat-prefetch we check op_ret only for -1 which results in function
proceeding and op_ret may become 0 due to other function calls in
sp_create_cbk, hence crashes in fuse.
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2409 (crash in stat prefetch)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2409
Diffstat (limited to 'argp-standalone')
0 files changed, 0 insertions, 0 deletions