OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-548-g32d35db
Gerrit Code Review
Fri, 20 Mar 2020 00:17:03 -0400
The following commit has been merged in the master branch:
Author: Marcio Barbosa <firstname.lastname@example.org>
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.
Reviewed-by: Benjamin Kaduk <email@example.com>
Tested-by: BuildBot <firstname.lastname@example.org>
src/vol/namei_ops.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
OpenAFS Master Repository