This gets rid of all those remote substitution messages that were polluting the build logs.
4NU5JJFDZMFKY23OFDQ43ZGBNOOMNEI3UPPFNLOKYROZTYMSNFCAC
/* Truncate the log to get rid of messages about substitutions
etc. on the remote system. */
if (lseek(logFD.get(), SEEK_SET, 0) != 0)
throw SysError("seeking to the start of log file ‘%s’", result.logFile);
if (ftruncate(logFD.get(), 0) == -1)
throw SysError("truncating log file ‘%s’", result.logFile);