Skip to content

Commit dac818c

Browse files
committed
Be able to delete temporary files on a different mount point
We are able to create files on a different mount point, but not delete them. This is at most inconvenient, except when running tests. A lot of the tests just checks of anything has been written to 'stderr', if it has, the test fail. Since we are not allowed to delete files, the parent directory is not empty when it is supposed to be removed, and an error message is printed to 'stderr'. If we are able to create files, we should be allowed to delete them as well.
1 parent 3b880da commit dac818c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/oscap_acquire.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void oscap_acquire_cleanup_dir(char **dir_path)
210210
{
211211
if (*dir_path != NULL)
212212
{
213-
nftw(*dir_path, __unlink_cb, 64, FTW_DEPTH | FTW_PHYS | FTW_MOUNT);
213+
nftw(*dir_path, __unlink_cb, 64, FTW_DEPTH | FTW_PHYS);
214214
free(*dir_path);
215215
*dir_path = NULL;
216216
}

0 commit comments

Comments
 (0)