Currently, and since OpenAFS 1.0, if write() fails here, we leak the
file descriptor. A write() failure should be very unlikely, but close
the fd to make sure we avoid the leak.
Change-Id: I4e8ed4216c4aa5041232fc798a7bc59f6a5570d9
Reviewed-on: https://gerrit.openafs.org/14213
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
i = (int)strlen(acellInfo->name);
code = write(fd, acellInfo->name, i);
if (code != i) {
+ close(fd);
UNLOCK_GLOBAL_MUTEX;
return AFSCONF_FAILURE;
}