Debian Codegraph @

debian/patches/snmpd_pidfile_mode

raw symbols SCIP
1 Descriptionscip-debian debian net-snmp 5.9.5.2+dfsg-2.1 net-snmp/patches/snmpd_pidfile_mode#Description.: Make snmpd pidfile word-readable
2 Almost all pid files are mode 644, including snmptrapd. For some unknown
3 reason, snmpd had mode 0600. Now it has 644 like everyone else.
4 Authorscip-debian debian net-snmp 5.9.5.2+dfsg-2.1 net-snmp/patches/snmpd_pidfile_mode#Author.: Craig Small <[email protected]scip-debian . . . identity/`[email protected]`.>
5 Bug-Debianscip-debian debian net-snmp 5.9.5.2+dfsg-2.1 net-snmp/patches/snmpd_pidfile_mode#Bug-Debian.: https://bugs.debian.org/528103scip-debian-bts debian-bts . . 528103:
6 Reviewed-byscip-debian debian net-snmp 5.9.5.2+dfsg-2.1 net-snmp/patches/snmpd_pidfile_mode#Reviewed-by.: Craig Small <[email protected]>
7 Last-Updatescip-debian debian net-snmp 5.9.5.2+dfsg-2.1 net-snmp/patches/snmpd_pidfile_mode#Last-Update.: 2025-12-23
8 --- a/agent/snmpd.cscip-debian debian net-snmp 5.9.5.2+dfsg-2.1 net-snmp/upstream/`agent/snmpd.c`:
9 +++ b/agent/snmpd.cscip-debian debian net-snmp 5.9.5.2+dfsg-2.1 net-snmp/upstream/`agent/snmpd.c`:
10 @@ -955,7 +955,7 @@
11 * already exists.
12 */
13 unlink(pid_file);
14 - fd = open(pid_file, O_CREAT | O_EXCL | O_WRONLY, 0600);
15 + fd = open(pid_file, O_CREAT | O_EXCL | O_WRONLY, 0644);
16 if (fd == -1) {
17 snmp_log_perror(pid_file);
18 if (!netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID,