mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
modify modeRegexp to adapt the default spec of containerd
https://github.com/containerd/containerd/blob/master/oci/spec.go#L206, the mode=755 didn't match the pattern modeRegexp = regexp.MustCompile("0[0-7][0-7][0-7]"). Closes #112 Signed-off-by: Juan <xionghuan.cn@gmail.com> Change-Id: I469e0a68160a1278e34c9e1dbe4b7784c6f97e5a PiperOrigin-RevId: 219672525
This commit is contained in:
@@ -44,7 +44,7 @@ const (
|
||||
)
|
||||
|
||||
// modeRegexp is the expected format of the mode option.
|
||||
var modeRegexp = regexp.MustCompile("0[0-7][0-7][0-7]")
|
||||
var modeRegexp = regexp.MustCompile("^0?[0-7][0-7][0-7]$")
|
||||
|
||||
// Filesystem is a tmpfs.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user