diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-08 22:35:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-08 22:35:52 +0200 |
commit | 88ec4dfa289cd97496dbb9670365a3d4be13d41c (patch) | |
tree | b1c13294254baf1c43a951d2f5519159ee29f6f7 /test | |
parent | 1ed8f8c16da99551c6731764759878a0bc243fde (diff) |
tmpfiles: rework file attribute code
- Stick to one type for the flags field: unsigned. This appears to be
what the kernel uses, and there's no point in using something else.
- compress the flags array by avoiding sparse entries
- extend some error messages to not use abbreviated words
- avoid TTOCTTOU issues by invoking fstat() after open() when applying
file flags
- add explanation why we need to check the file type with fstat().
- don't needlessly abbreviate "attribute" as "attrib", in particually as
"chattr" abbreviates it as "attr" rather than "attrib".
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions