diff options
author | Franck Bui <fbui@suse.com> | 2018-03-02 16:13:07 +0100 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2018-03-05 19:00:11 +0100 |
commit | 774f79b570ce1976a2c98d7e097df637e484f2e7 (patch) | |
tree | bde08bd663919da12f23d3875d4bf74de480d0f2 | |
parent | Merge pull request #8341 from yuwata/test-execute-ambient (diff) | |
download | systemd-774f79b570ce1976a2c98d7e097df637e484f2e7.tar.xz systemd-774f79b570ce1976a2c98d7e097df637e484f2e7.zip |
tmpfiles: make hardlink_vulnerable() argument constant
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 98368c36f13..42d85a39283 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -777,7 +777,7 @@ static bool dangerous_hardlinks(void) { return cached; } -static bool hardlink_vulnerable(struct stat *st) { +static bool hardlink_vulnerable(const struct stat *st) { assert(st); return !S_ISDIR(st->st_mode) && st->st_nlink > 1 && dangerous_hardlinks(); |