From cd8a2edefb18531e8da41541c541badf7d1a46fd Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 20 Jan 2023 14:41:22 +0800 Subject: [PATCH] Reduce unnecessary formatting --- native/src/core/module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/src/core/module.cpp b/native/src/core/module.cpp index 27cec9ff1..aa38db99c 100644 --- a/native/src/core/module.cpp +++ b/native/src/core/module.cpp @@ -798,7 +798,7 @@ void disable_modules() { foreach_module([&](int, dirent *entry, int modfd) { close(xopenat(modfd, "disable", O_RDONLY | O_CREAT | O_CLOEXEC, 0)); if (off) { - ssprintf(buf + off, sizeof(buf) - off, "/%s/%s", entry->d_name, "sepolicy.rule"); + ssprintf(buf + off, sizeof(buf) - off, "/%s/sepolicy.rule", entry->d_name); unlink(buf); } }); @@ -812,7 +812,7 @@ void remove_modules() { if (access(uninstaller.data(), F_OK) == 0) exec_script(uninstaller.data()); if (off) { - ssprintf(buf + off, sizeof(buf) - off, "/%s/%s", entry->d_name, "sepolicy.rule"); + ssprintf(buf + off, sizeof(buf) - off, "/%s/sepolicy.rule", entry->d_name); unlink(buf); } });