import (
"fmt"
"net/url"
+ "os"
"regexp"
"git.curoverse.com/arvados.git/sdk/go/arvados"
if err != nil {
return fmt.Errorf("checkout failed: %s", err)
}
+ err = os.Chmod(dir, 0755)
+ if err != nil {
+ return fmt.Errorf("chmod %o %q: %s", 0755, dir, err)
+ }
return nil
}
// Ensure there's no extra stuff like a ".git" dir
s.checkTmpdirContents(c, []string{"dir1"})
+
+ // Ensure tmpdir is world-readable and world-executable so the
+ // UID inside the container can use it.
+ fi, err = os.Stat(s.tmpdir)
+ c.Check(err, check.IsNil)
+ c.Check(fi.Mode()&os.ModePerm, check.Equals, os.FileMode(0755))
}
// Commit 5ebfab0 is not the tip of any branch or tag, but is