ubik: Avoid unlinking garbage
authorSimon Wilkinson <sxw@your-file-system.com>
Wed, 27 Feb 2013 10:34:59 +0000 (10:34 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 27 Feb 2013 20:45:18 +0000 (12:45 -0800)
commit44e806431bec3149a78127f5d1003e84e3a0b072
tree3db58dcc78b7125e464b67924a5715c5aed0cf0b
parent816b0c76738b7e404c9384a745b58b4d90bfc30d
ubik: Avoid unlinking garbage

If SDISK_SendFail fails before the pathname to the temporary file
has been constructed, then the failure handler will unlink stack
garbage, with variable results.

Initialise the string, and check to see if it has contents before
calling unlink

Change-Id: I1de898d5f0f0dc608e9c9c62dc66e6b4b9fdc5bf
Reviewed-on: http://gerrit.openafs.org/9299
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/ubik/remote.c