Commit 124640f1 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

nspawn: reset umask if needed

parent 94d82985
...@@ -176,6 +176,9 @@ static int copy_devnodes(const char *dest) { ...@@ -176,6 +176,9 @@ static int copy_devnodes(const char *dest) {
int r = 0, k; int r = 0, k;
char *tty = NULL; char *tty = NULL;
dev_t tty_devnum; dev_t tty_devnum;
mode_t u;
u = umask(0000);
NULSTR_FOREACH(d, devnodes) { NULSTR_FOREACH(d, devnodes) {
char *from = NULL, *to = NULL; char *from = NULL, *to = NULL;
...@@ -265,6 +268,8 @@ static int copy_devnodes(const char *dest) { ...@@ -265,6 +268,8 @@ static int copy_devnodes(const char *dest) {
free(tty); free(tty);
umask(u);
return r; return r;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment