From 23446f01480e1d6f72a03d71f9c67cbf34ddaf3b Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Thu, 1 Oct 2015 11:04:08 +0200 Subject: tree-wide: add missing errno arguments to log_*_errno() A few of the recent conversions to log_*_errno() were missing the errno value arguments. Fixes: e53fc357a9b "tree-wide: remove a number of invocations of strerror() and replace by %m" --- src/core/smack-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/smack-setup.c') diff --git a/src/core/smack-setup.c b/src/core/smack-setup.c index 6618aa501d..761582c7a2 100644 --- a/src/core/smack-setup.c +++ b/src/core/smack-setup.c @@ -222,7 +222,7 @@ int mac_smack_setup(bool *loaded_policy) { #ifdef SMACK_RUN_LABEL r = write_string_file("/proc/self/attr/current", SMACK_RUN_LABEL, 0); if (r) - log_warning_errno("Failed to set SMACK label \"%s\" on self: %m", SMACK_RUN_LABEL); + log_warning_errno(r, "Failed to set SMACK label \"%s\" on self: %m", SMACK_RUN_LABEL); #endif r = write_cipso2_rules("/etc/smack/cipso.d/"); -- cgit v1.2.3-54-g00ecf