Skip to content

--special-files deletes already existing special files #184

@kiwiiq

Description

@kiwiiq

Not sure if it is intended but when running sandbox (--run) it deletes special files I created in the directory. This should probably fix it.

diff --git a/isolate.c b/isolate.c
index 8a685e7..e738fc1 100644
--- a/isolate.c
+++ b/isolate.c
@@ -1044,7 +1044,7 @@ run(char **argv)
       close_all_fds();
     }
 
-  chowntree("box", box_uid, box_gid, false);
+  chowntree("box", box_uid, box_gid, special_files);
   cleanup_ownership = 1;
 
   setup_pipe(error_pipes, 1);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions