mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 16:34:45 +07:00
tmpfiles: implement remove logic for 'D'
> D > Similar to d, but in addition the contents of the directory will be removed when --remove is used.
This commit is contained in:
@@ -326,7 +326,12 @@ static void tmpfiles(char *line)
|
||||
case 'c':
|
||||
case 'C':
|
||||
case 'd':
|
||||
break;
|
||||
case 'D':
|
||||
if (fisdir(path)) {
|
||||
nftw(path, do_delete, 20, FTW_DEPTH | FTW_PHYS);
|
||||
}
|
||||
break;
|
||||
case 'e':
|
||||
case 'f':
|
||||
case 'F':
|
||||
|
||||
Reference in New Issue
Block a user