Skip to content

Commit e98d7b6

Browse files
committed
deletes files with hardcoded names before creating them
1 parent e5a0cb2 commit e98d7b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/probes/symlink/test_offline_mode_symlink.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ function test_offline_mode_symlink {
3535
touch $tmpdir/file_in_root
3636
ln -s ../../../../../file_in_root $tmpdir/path_traversal_symlink
3737
ln -s ./some_file $tmpdir/symlink_with_dot_in_path
38+
#temporary ugly solution trying to ensure that files don't exist before being created
39+
rm -f /tmp/symlinktarget
3840
touch /tmp/symlinktarget
41+
rm -f /tmp/symlinktest
3942
ln -s /tmp/symlinktarget /tmp/symlinktest
4043

4144

0 commit comments

Comments
 (0)