Suwudo
This commit is contained in:
commit
30cd816f7f
2 changed files with 167 additions and 0 deletions
8
README.md
Normal file
8
README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Suwudo
|
||||
|
||||
uwu sudo message patches.
|
||||
|
||||
This repository only contains the patches for the sudo source code.
|
||||
In order to build it, you also need to clone the sudo repository and apply the patches.
|
||||
|
||||
nya~
|
159
sudo.patch
Normal file
159
sudo.patch
Normal file
|
@ -0,0 +1,159 @@
|
|||
From 3f10530a24e02dd72034138f07115c84c9ac3960 Mon Sep 17 00:00:00 2001
|
||||
From: nya <nya@femboy.engineering>
|
||||
Date: Mon, 26 Sep 2022 01:05:54 +0200
|
||||
Subject: [PATCH 1/2] uwu
|
||||
|
||||
---
|
||||
.vscode/c_cpp_properties.json | 16 ++++++++++++++++
|
||||
plugins/sudoers/auth/sudo_auth.c | 2 +-
|
||||
plugins/sudoers/logging.c | 14 +++++++-------
|
||||
3 files changed, 24 insertions(+), 8 deletions(-)
|
||||
create mode 100644 .vscode/c_cpp_properties.json
|
||||
|
||||
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 e240ca692..999188bae 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);
|
||||
}
|
||||
@@ -362,7 +362,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"), user_cmnd);
|
||||
+ sudo_warnx(U_("%s: me nyo~t knoww the commUwUand~ :c"), user_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."), user_cmnd, user_cmnd, user_cmnd);
|
||||
}
|
||||
@@ -384,8 +384,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);
|
||||
}
|
||||
@@ -474,7 +474,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))
|
||||
@@ -513,7 +513,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. */
|
||||
@@ -532,7 +532,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);
|
||||
--
|
||||
2.38.1
|
||||
|
||||
|
||||
From 9f3f97f1e21594a348346f5790a97033fadc69bb Mon Sep 17 00:00:00 2001
|
||||
From: nya <nya@femboy.engineering>
|
||||
Date: Thu, 3 Nov 2022 16:14:50 +0100
|
||||
Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8F=B3=EF=B8=8F=E2=80=8D=E2=9A=A7?=
|
||||
=?UTF-8?q?=EF=B8=8F?=
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
---
|
||||
plugins/sudoers/logging.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c
|
||||
index 999188bae..abd36c81e 100644
|
||||
--- a/plugins/sudoers/logging.c
|
||||
+++ b/plugins/sudoers/logging.c
|
||||
@@ -384,7 +384,7 @@ fmt_authfail_message(unsigned int tries)
|
||||
debug_decl(fmt_authfail_message, SUDOERS_DEBUG_LOGGING);
|
||||
|
||||
if (def_authfail_message == NULL) {
|
||||
- if (asprintf(&ret, ngettext("%u uwuless passwowd twieww :3",
|
||||
+ if (asprintf(&ret, ngettext("%u uwuless passwowd twieww 🏳️⚧️ :3",
|
||||
"%u uwuless passwowd twieww ~ >.< ~", tries), tries) == -1)
|
||||
goto oom;
|
||||
debug_return_ptr(ret);
|
||||
@@ -513,7 +513,7 @@ log_auth_failure(int status, unsigned int tries)
|
||||
free(message);
|
||||
}
|
||||
} else {
|
||||
- ret = log_reject(_("wheww is my pawsome pawwwowd"), logit, mailit);
|
||||
+ ret = log_reject(_("wheww is my pawsome pawwwowd 🙏"), logit, mailit);
|
||||
}
|
||||
|
||||
/* Restore locale. */
|
||||
@@ -532,7 +532,7 @@ log_auth_failure(int status, unsigned int tries)
|
||||
free(message);
|
||||
}
|
||||
} else {
|
||||
- sudo_warnx("%s", _("wheww is my pawsome pawwwowd"));
|
||||
+ sudo_warnx("%s", _("wheww is my pawsome pawwwowd 🙏🙏"));
|
||||
}
|
||||
|
||||
sudoers_setlocale(oldlocale, NULL);
|
||||
--
|
||||
2.38.1
|
||||
|
Loading…
Reference in a new issue