successfully writing it. close cannot return an error status on most
local filesystems, but can on some network filesystems such as AFS or
NFS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22043
dc483132-0cff-0310-8789-
dd5450dbe970
wrerr++;
if (ftruncate(of, size))
error("rcp: can't truncate %s: %s\n", nambuf, error_message(errno));
- (void) close(of);
+ if (close(of) != 0)
+ error("rcp: error closing %s: %s\n", nambuf, error_message(errno));
(void) response();
if (setimes) {
setimes = 0;