From 774f79b570ce1976a2c98d7e097df637e484f2e7 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Fri, 2 Mar 2018 16:13:07 +0100 Subject: [PATCH] tmpfiles: make hardlink_vulnerable() argument constant --- src/tmpfiles/tmpfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2