[google/syzkaller] c1132b: pkg/osutil: slightly relaxed Abs check

1 view
Skip to first unread message

Dmitry Vyukov

unread,
Oct 25, 2021, 9:41:09 AM10/25/21
to syzk...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/google/syzkaller
Commit: c1132b49314d96788d6467f64e567faa31e8e063
https://github.com/google/syzkaller/commit/c1132b49314d96788d6467f64e567faa31e8e063
Author: Dmitry Vyukov <dvy...@google.com>
Date: 2021-10-25 (Mon, 25 Oct 2021)

Changed paths:
M pkg/osutil/osutil.go

Log Message:
-----------
pkg/osutil: slightly relaxed Abs check

Currently Abs captures pwd in init function and checks
that it's not changing over program execution.
However, in some test environments (bazel) we need to chdir
in test init function because the test process is started
in a wrong dir. This causes the check in Abs to fail.
Query the pwd lazily on the first Abs call.
This does not change behavior for Abs users, but allows
to change pwd in other init functions.


Reply all
Reply to author
Forward
0 new messages