mirror of
https://github.com/verilator/verilator.git
synced 2026-10-05 17:43:31 +02:00
Fix wrong utimes() param (#4829)
This commit is contained in:
+1
-3
@@ -318,9 +318,7 @@ void V3Os::filesystemFlushBuildDir(const string& dirname) {
|
||||
// Attempt to force out written directory, for NFS like file systems.
|
||||
#if !defined(_MSC_VER) && !defined(__MINGW32__)
|
||||
// Linux kernel may not reread from NFS unless timestamp modified
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
const int err = utimes(dirname.c_str(), &tv);
|
||||
const int err = utimes(dirname.c_str(), nullptr);
|
||||
// Not an error
|
||||
if (err != 0) UINFO(1, "-Info: File not utimed: " << dirname << endl);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user