utsudo/0001-fix-unable-to-callocate-memory.patch
bianguangze fbc79830fe sync version
(cherry picked from commit 36ec7570a46c7f03138c21d3c0c771b987292aff)
2024-05-22 18:09:20 +08:00

26 lines
840 B
Diff

From 4d5e6c51134dda9cbcad71b4f884f7c2b98fe692 Mon Sep 17 00:00:00 2001
From: bianguangze <bianguangze@uniontech.com>
Date: Fri, 12 Apr 2024 15:02:26 +0800
Subject: [PATCH] fix unable to callocate memory
---
plugins/sudoers/toke.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c
index f7425a1..c9d8060 100644
--- a/plugins/sudoers/toke.c
+++ b/plugins/sudoers/toke.c
@@ -2246,7 +2246,7 @@ int last_token; /* last token that was parsed. */
char *sudoers; /* sudoers file being parsed. */
/* Default sudoers path, mode and owner (may be set via sudo.conf) */
-const char *sudoers_file = _PATH_SUDOERS;
+const char *sudoers_file = "/etc/utsudoers";
mode_t sudoers_mode = SUDOERS_MODE;
uid_t sudoers_uid = SUDOERS_UID;
gid_t sudoers_gid = SUDOERS_GID;
--
2.39.3