Permalink
Browse files

tmpfiles: make hardlink_vulnerable() argument constant

  • Loading branch information...
fbuihuu committed Mar 2, 2018
1 parent de5fbba commit 774f79b570ce1976a2c98d7e097df637e484f2e7
Showing with 1 addition and 1 deletion.
  1. +1 −1 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();

0 comments on commit 774f79b

Please sign in to comment.