check: functionality for symlinks
Default behavior (according to upstream mtree) for validating symlinks is to just validate the link itself, not to follow it. Signed-off-by: Stephen Chung <schung@redhat.com>
This commit is contained in:
parent
d6b0881515
commit
2facedc401
16 changed files with 41 additions and 9 deletions
0
testdata/dirwithbrokenlink/ file with spaces
vendored
Normal file
0
testdata/dirwithbrokenlink/ file with spaces
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/dir3/dir4/deepfile
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/dir3/dir4/deepfile
vendored
Normal file
1
testdata/dirwithbrokenlink/deepdir/dir3/dir4/dir5/dir6/deeperfile
vendored
Normal file
1
testdata/dirwithbrokenlink/deepdir/dir3/dir4/dir5/dir6/deeperfile
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
some spacious text
|
1
testdata/dirwithbrokenlink/deepdir/dir3/dir4/dir5/dir7/deeperfile
vendored
Normal file
1
testdata/dirwithbrokenlink/deepdir/dir3/dir4/dir5/dir7/deeperfile
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
some nice text
|
0
testdata/dirwithbrokenlink/deepdir/dir3/file
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/dir3/file
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/dir3/file6
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/dir3/file6
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/dir3/file7
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/dir3/file7
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/this_is_a_file
vendored
Normal file
0
testdata/dirwithbrokenlink/deepdir/this_is_a_file
vendored
Normal file
0
testdata/dirwithbrokenlink/dir1/.hiddenfile
vendored
Normal file
0
testdata/dirwithbrokenlink/dir1/.hiddenfile
vendored
Normal file
1
testdata/dirwithbrokenlink/dir1/badlink
vendored
Symbolic link
1
testdata/dirwithbrokenlink/dir1/badlink
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
badfile
|
1
testdata/dirwithbrokenlink/dir1/dir2/.hidden/goodlink
vendored
Symbolic link
1
testdata/dirwithbrokenlink/dir1/dir2/.hidden/goodlink
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../goodfile
|
1
testdata/dirwithbrokenlink/dir1/goodfile
vendored
Normal file
1
testdata/dirwithbrokenlink/dir1/goodfile
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
link text
|
0
testdata/dirwithbrokenlink/file1
vendored
Normal file
0
testdata/dirwithbrokenlink/file1
vendored
Normal file
0
testdata/dirwithbrokenlink/file2
vendored
Normal file
0
testdata/dirwithbrokenlink/file2
vendored
Normal file
Loading…
Add table
Add a link
Reference in a new issue