add handling of a '.' commondir and bounds checking to mount_linux

Signed-off-by: Craig Ingram <Cjingram@google.com>
This commit is contained in:
Craig Ingram
2023-05-30 20:55:13 +00:00
parent 4b7145cfd3
commit d2605de734
2 changed files with 11 additions and 1 deletions

View File

@@ -84,6 +84,13 @@ func TestCompactLowerdirOption(t *testing.T) {
"",
[]string{"lowerdir=/snapshots/1/fs:/other_snapshots/1/fs"},
},
// if common dir is .
{
[]string{"lowerdir=a:aaa"},
"",
[]string{"lowerdir=a:aaa"},
},
}
for i, tc := range tcases {