From c22553effb151532eb95fc1f7bb17a3aebe63202 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 8 May 2017 14:57:59 +0200 Subject: support: Prevent multiple deletion of temporary files Otherwise, another user might recreate these files after the first deletion. Particularly with temporary directories, this could result in the removal of unintended files through symbol link attacks. --- dirent/tst-scandir.c | 1 - 1 file changed, 1 deletion(-) (limited to 'dirent') diff --git a/dirent/tst-scandir.c b/dirent/tst-scandir.c index 09d19ab..4ecfd7b 100644 --- a/dirent/tst-scandir.c +++ b/dirent/tst-scandir.c @@ -293,7 +293,6 @@ do_test (void) remove_file (scandir_test_dir, "aa"); remove_file (scandir_test_dir, "b"); remove_file (scandir_test_dir, "a"); - rmdir (scandir_test_dir); return 0; } -- cgit v1.1