aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-09-14 08:47:56 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-09-14 10:38:36 +0200
commit605d25b511f02ef747a46a21d94ddc3077d0b7a0 (patch)
treefda2ee665df0ba054b685d356f3938aaa578a21b /pkg
parentbf14d79b03223b0a9178c69b033355a73b5ed7b2 (diff)
syz-ci: fix seeds copying
1. Copy seeds from syzkaller checkout into syzkaller build dir. They need to be stable. 2. Make the code generic (current is linux-specific). 3. Don't copy seeds to workdir/seeds. We can load them directly from sys/OS/test. There are some unresolved comments for LinkDir on #2053 anyway. Follow up to #2053
Diffstat (limited to 'pkg')
-rw-r--r--pkg/osutil/osutil.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/pkg/osutil/osutil.go b/pkg/osutil/osutil.go
index 340c51de5..cd6a1cce7 100644
--- a/pkg/osutil/osutil.go
+++ b/pkg/osutil/osutil.go
@@ -235,21 +235,6 @@ func LinkFiles(srcDir, dstDir string, files map[string]bool) error {
return nil
}
-// LinkDir creates soft links from dstDir to srcDir.
-// All other files in dstDir are removed.
-func LinkDir(srcDir, dstDir string) error {
- if err := os.RemoveAll(dstDir); err != nil {
- return err
- }
- if err := MkdirAll(dstDir); err != nil {
- return err
- }
- if err := os.Symlink(srcDir, dstDir); err != nil {
- return err
- }
- return nil
-}
-
func MkdirAll(dir string) error {
return os.MkdirAll(dir, DefaultDirPerm)
}