From 56d07bb97aaa746be7f4bf9800b513ab297e643a Mon Sep 17 00:00:00 2001 From: Craig Small Date: Mon, 27 Jun 2022 15:01:26 +0800 Subject: [PATCH] Make snmpd pidfile word-readable Almost all pid files are mode 644, including snmptrapd. For some unknown reason, snmpd had mode 0600. Now it has 644 like everyone else. Bug-Debian: https://bugs.debian.org/528103 Reviewed-by: Craig Small Last-Update: 2019-04-30 Gbp-Pq: Name snmpd_pidfile_mode --- agent/snmpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/snmpd.c b/agent/snmpd.c index 6566354..b838d4d 100644 --- a/agent/snmpd.c +++ b/agent/snmpd.c @@ -984,7 +984,7 @@ main(int argc, char *argv[]) * already exists. */ unlink(pid_file); - fd = open(pid_file, O_CREAT | O_EXCL | O_WRONLY, 0600); + fd = open(pid_file, O_CREAT | O_EXCL | O_WRONLY, 0644); if (fd == -1) { snmp_log_perror(pid_file); if (!netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID,