1
1
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:
Kay Sievers 2011-04-03 22:21:21 +02:00
parent d24e1b4806
commit 3336686286
2 changed files with 1 additions and 2 deletions

2
TODO
View File

@ -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.

View File

@ -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);