Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
148 | magnus | 1 | Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672936 |
2 | Origin: upstream, https://git.lysator.liu.se/lsh/lsh/commit/99b8bf8cf29a8a5e6cb63edd5c46bfa337b5a1d2 |
||
3 | From: Niels Möller <nisse@lysator.liu.se> |
||
4 | Subject: Don't clear umask. |
||
5 | |||
6 | --- a/src/daemon.c |
||
7 | +++ b/src/daemon.c |
||
8 | @@ -303,13 +303,9 @@ daemon_init(enum daemon_mode mode) |
||
9 | } |
||
10 | |||
11 | /* Enter the root directory to prevent hampering umounts. */ |
||
12 | - |
||
13 | if (chdir(ROOT_DIR) == -1) |
||
14 | return 0; |
||
15 | |||
16 | - /* Clear umask to enable explicit file modes. */ |
||
17 | - umask(0); |
||
18 | - |
||
19 | return 1; |
||
20 | } |
||
21 |