[Bugs] [Bug 789278] Issues reported by Coverity static analysis tool

bugzilla at redhat.com bugzilla at redhat.com
Tue Oct 31 07:38:38 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=789278



--- Comment #1061 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18361 committed in master by  

------------- Xlators/features: Coverity Issue "NEGATIVE_RETURNS" in
worm_truncate,worm_ftruncate,worm_link,worn_unlink and worm_rename.

Issue :Event negative_returns:     "op_errno" is passed to a parameter
that cannot be negative.

Fix : In functions worm_link,worm_unlink,worm_truncate,worm_ftruncate
and worm_rename, added an condition to check the whether value
of "op_errno" is negative or not.If the value is negative, then
it is set to EROFS.

Change-Id: Ie65601b6cc9799f587cc574408281dab50a58afb
BUG: 789278
Signed-off-by: Subha sree Mohankumar <smohanku at redhat.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list