tmpfiles: make hardlink_vulnerable() argument constant

This commit is contained in:
Franck Bui 2018-03-02 16:13:07 +01:00
parent de5fbba9e2
commit 774f79b570
1 changed files with 1 additions and 1 deletions

View File

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