mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
tmpfiles: create leading directories for d/D instructions
This commit is contained in:
parent
d24e1b4806
commit
3336686286
2
TODO
2
TODO
@ -30,8 +30,6 @@ Features:
|
||||
* tmpfiles should allow two identical lines
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=690253
|
||||
|
||||
* tmpfiles should create leading directories for d,D,f,F?
|
||||
|
||||
* avoid any flag files, or readahead files in /, we need to support r/o /
|
||||
or / on tmpfs like Android setups.
|
||||
|
||||
|
@ -466,6 +466,7 @@ static int create_item(Item *i) {
|
||||
case CREATE_DIRECTORY:
|
||||
|
||||
u = umask(0);
|
||||
mkdir_parents(i->path, 0755);
|
||||
r = mkdir(i->path, i->mode);
|
||||
umask(u);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user