26 lines
840 B
Diff
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
|
|
|