Fix format

This commit is contained in:
femsci 2023-01-16 19:14:27 +01:00
parent 75ddc15cef
commit 1547846cce
Signed by: femsci
GPG key ID: 08F7911F0E650C67

View file

@ -1,2 +1,96 @@
0001-uwu.patch
0002-.patch
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
new file mode 100644
index 000000000..e50743d91
--- /dev/null
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,16 @@
+{
+ "configurations": [
+ {
+ "name": "Linux",
+ "includePath": [
+ "${workspaceFolder}/**"
+ ],
+ "defines": [],
+ "compilerPath": "/usr/bin/clang",
+ "cStandard": "c17",
+ "cppStandard": "c++20",
+ "intelliSenseMode": "linux-clang-x64"
+ }
+ ],
+ "version": 4
+}
\ No newline at end of file
diff --git a/plugins/sudoers/auth/sudo_auth.c b/plugins/sudoers/auth/sudo_auth.c
index 341f97d5a..053b48376 100644
--- a/plugins/sudoers/auth/sudo_auth.c
+++ b/plugins/sudoers/auth/sudo_auth.c
@@ -483,7 +483,7 @@ dump_auth_methods(void)
sudo_auth *auth;
debug_decl(dump_auth_methods, SUDOERS_DEBUG_AUTH);
- sudo_printf(SUDO_CONV_INFO_MSG, _("Authentication methods:"));
+ sudo_printf(SUDO_CONV_INFO_MSG, _("awwthenticawtion meowthods:"));
for (auth = auth_switch; auth->name; auth++)
sudo_printf(SUDO_CONV_INFO_MSG, " '%s'", auth->name);
sudo_printf(SUDO_CONV_INFO_MSG, "\n");
diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c
index 9644ca9c1..7ccec17ce 100644
--- a/plugins/sudoers/logging.c
+++ b/plugins/sudoers/logging.c
@@ -331,7 +331,7 @@ log_denial(int status, bool inform_user)
}
if (mailit) {
sudo_printf(SUDO_CONV_ERROR_MSG, "%s",
- _("This incident has been reported to the administrator.\n"));
+ _("uwu you g-got youwseww into a twoubwwe :333\n"));
}
sudoers_setlocale(oldlocale, NULL);
}
@@ -366,7 +366,7 @@ log_failure(int status, int flags)
* their path to just contain a single dir.
*/
if (flags == NOT_FOUND)
- sudo_warnx(U_("%s: command not found"), cmnd);
+ sudo_warnx(U_("%s: me nyo~t knoww the commUwUand~ :c"), cmnd);
else if (flags == NOT_FOUND_DOT)
sudo_warnx(U_("ignoring \"%s\" found in '.'\nUse \"sudo ./%s\" if this is the \"%s\" you wish to run."), cmnd, cmnd, cmnd);
}
@@ -388,8 +388,8 @@ fmt_authfail_message(unsigned int tries)
debug_decl(fmt_authfail_message, SUDOERS_DEBUG_LOGGING);
if (def_authfail_message == NULL) {
- if (asprintf(&ret, ngettext("%u incorrect password attempt",
- "%u incorrect password attempts", tries), tries) == -1)
+ if (asprintf(&ret, ngettext("%u uwuless passwowd twieww 🏳️‍⚧️ :3",
+ "%u uwuless passwowd twieww ~ >.< ~", tries), tries) == -1)
goto oom;
debug_return_ptr(ret);
}
@@ -478,7 +478,7 @@ log_auth_failure(int status, unsigned int tries)
debug_decl(log_auth_failure, SUDOERS_DEBUG_LOGGING);
/* Do auditing first (audit_failure() handles the locale itself). */
- audit_failure(NewArgv, "%s", N_("authentication failure"));
+ audit_failure(NewArgv, "%s", N_("bad awwthweww uwu"));
/* If sudoers denied the command we'll log that separately. */
if (!ISSET(status, FLAG_BAD_PASSWORD|FLAG_NO_USER_INPUT))
@@ -517,7 +517,7 @@ log_auth_failure(int status, unsigned int tries)
free(message);
}
} else {
- ret = log_reject(_("a password is required"), logit, mailit);
+ ret = log_reject(_("wheww is my pawsome pawwwowd 🙏"), logit, mailit);
}
/* Restore locale. */
@@ -536,7 +536,7 @@ log_auth_failure(int status, unsigned int tries)
free(message);
}
} else {
- sudo_warnx("%s", _("a password is required"));
+ sudo_warnx("%s", _("wheww is my pawsome pawwwowd 🙏🙏"));
}
sudoers_setlocale(oldlocale, NULL);