]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: make messages useful for users
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 28 Apr 2023 07:57:57 +0000 (09:57 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 16 May 2023 20:44:50 +0000 (22:44 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/enosys.c

index ab81e87f63c495f0b3d12d418b65d72cfdf7cd9e..c153339c5d4f0c6fe26f3ece94dfaad8a36806ab 100644 (file)
@@ -164,10 +164,10 @@ int main(int argc, char **argv)
                err(EXIT_NOTSUPP, _("Seccomp non-functional"));
 
        if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0))
-               err_nosys(EXIT_FAILURE, _("prctl(PR_SET_NO_NEW_PRIVS)"));
+               err_nosys(EXIT_FAILURE, _("Could not run prctl(PR_SET_NO_NEW_PRIVS)"));
 
        if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog))
-               err_nosys(EXIT_FAILURE, _("prctl(PR_SET_SECCOMP)"));
+               err_nosys(EXIT_FAILURE, _("Could not run prctl(PR_SET_SECCOMP)"));
 
        if (execvp(argv[optind], argv + optind))
                err(EXIT_NOTSUPP, _("Could not exec"));