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. --- posix/tst-pathconf.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'posix/tst-pathconf.c') diff --git a/posix/tst-pathconf.c b/posix/tst-pathconf.c index cce59e6d47..88df792ab3 100644 --- a/posix/tst-pathconf.c +++ b/posix/tst-pathconf.c @@ -162,11 +162,5 @@ out_nofifo: ret = 1; } - if (rmdir (dirbuf) != 0) - { - printf ("Could not remove directory (%s)\n", strerror (errno)); - ret = 1; - } - return ret; } -- cgit 1.4.1