Skip to content

Commit 362ad4e

Browse files
authored
vine: use stat consistently for file modifications (#4311)
We were comparing lstat and stat, which would produce different results when input files were specified with symlinks.
1 parent d998392 commit 362ad4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taskvine/src/manager/vine_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int vine_file_has_changed(struct vine_file *f)
194194

195195
struct stat info;
196196

197-
int result = lstat(f->source, &info);
197+
int result = stat(f->source, &info);
198198
if (result != 0) {
199199
debug(D_NOTICE | D_VINE, "input file %s couldn't be accessed: %s", f->source, strerror(errno));
200200
return 1;

0 commit comments

Comments
 (0)