Update ctime when truncating file (#1619)

Found via pjdfstests.  References #1589.
This commit is contained in:
Andrew Gaul 2021-04-13 07:08:06 +09:00 committed by GitHub
parent ed2e877bb6
commit 23e1fbf7b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2161,6 +2161,7 @@ static int s3fs_truncate(const char* _path, off_t size)
return result;
}
ent->UpdateCtime();
}else{
// Not found -> Make tmpfile(with size)