OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-548-g32d35db

Gerrit Code Review gerrit@openafs.org
Fri, 20 Mar 2020 00:17:03 -0400


The following commit has been merged in the master branch:
commit 957b06984b77cba74bd90217b723220c1844809b
Author: Marcio Barbosa <mbarbosa@sinenomine.net>
Date:   Fri Mar 6 15:15:38 2020 +0000

    vol: fix namei_ConvertROtoRWvolume return code
    
    Commit 8632f23d6718a3cd621791e82d1cf6ead8690978 introduced checks for
    the return value of snprintf calls in namei_ops. On success, the value
    returned by this function represents the number of written characters.
    Unfortunately, the variable used to store this value is the same
    variable that represents the status code returned by
    namei_ConvertROtoRWvolume. Consequently, a successful execution of
    namei_ConvertROtoRWvolume results in a status code different the 0 (and
    equal to the number of written characters).
    
    To fix this problem, set the status code in question back to 0 after a
    successful execution of namei_ConvertROtoRWvolume.
    
    Change-Id: Ic6fd6483f8d94fd64587f8bae249b9d911d846b4
    Reviewed-on: https://gerrit.openafs.org/14065
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>

 src/vol/namei_ops.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

-- 
OpenAFS Master Repository