Fix volume for temporary files

GitOrigin-RevId: cde5591cac6bb2060fb277c9400989252120e8a1
This commit is contained in:
Dietrich Epp 2021-03-10 20:35:27 -05:00
parent 94e38f1274
commit fbe60364fe

2
sync.c
View File

@ -732,7 +732,7 @@ static int command_main(char *destpath, int mode) {
file->meta[kSrcDir].modTime);
} else {
if (tempDir == 0) {
err = FindFolder(destVol, kTemporaryFolderType, TRUE,
err = FindFolder(srcVol, kTemporaryFolderType, TRUE,
&tempVol, &tempDir);
if (err != 0) {
print_errcode(err, "could not find temporary folder");