Minor whitespace cleanup.

Signed-off-by: Peter Jones <pjones@redhat.com>
If the real file size of an efivarfs file is smaller than stat, get it right.

If the file has been ftruncate()ed to be bigger than its contents, we're
still only getting the real size back, so honor what read() gives us and
return that size, instead of returning the size ftruncate() set it to.

Signed-off-by: Peter Jones <pjones@redhat.com>
Get rid of ftruncate() call in efivarfs writes.

The ftruncate call winds up meaning the file gets extended on an
authenticated append which would otherwise result in EPERM.  Then the
file size is wrong for no good reason.

Signed-off-by: Peter Jones <pjones@redhat.com>