auth: Correctly write empty keyfiles
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 25 Feb 2011 01:23:38 +0000 (01:23 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 26 Feb 2011 12:00:25 +0000 (04:00 -0800)
commitfcbb656cf7b29b2f03592f3b56556e18b173092a
tree8638bffad3c6cf0fd09cf0ecb483ea68e0053ad0
parent80f6e4fa8bbc468fe75692a4730cf822a4e0d686
auth: Correctly write empty keyfiles

The new key handling code was creating empty keyfiles that were 0
bytes in length. The correct format for an empty keyfile is a file
containing a single 0 word (the number of keys in the file). Update
the code to write this form of empty KeyFile.

Change-Id: I93bf23f6044a70a74f52b94c4656cbd4bc4fc35b
Reviewed-on: http://gerrit.openafs.org/4051
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/auth/keys.c
tests/auth/keys-t.c