2021-09-21 08:13:46 +00:00
|
|
|
Index: atftp-0.7.5/tftpd.c
|
2016-12-08 09:00:44 +00:00
|
|
|
===================================================================
|
2021-09-21 08:13:46 +00:00
|
|
|
--- atftp-0.7.5.orig/tftpd.c
|
|
|
|
+++ atftp-0.7.5/tftpd.c
|
|
|
|
@@ -99,8 +99,8 @@ int deny_severity = LOG_NOTICE;
|
2016-12-08 09:00:44 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* user ID and group ID when running as a daemon */
|
|
|
|
-char user_name[MAXLEN] = "nobody";
|
|
|
|
-char group_name[MAXLEN] = "nogroup";
|
|
|
|
+char user_name[MAXLEN] = "tftp";
|
|
|
|
+char group_name[MAXLEN] = "tftp";
|
|
|
|
|
|
|
|
/* For special uses, disable source port checking */
|
|
|
|
int source_port_checking = 1;
|
2021-09-21 08:13:46 +00:00
|
|
|
@@ -298,7 +298,7 @@ int main(int argc, char **argv)
|
2016-12-08 09:00:44 +00:00
|
|
|
dup2(sockfd, 0);
|
|
|
|
close(sockfd);
|
|
|
|
|
|
|
|
- /* release priviliedge */
|
2021-09-21 08:13:46 +00:00
|
|
|
+ /* release priviledge */
|
2016-12-08 09:00:44 +00:00
|
|
|
|
2021-09-21 08:13:46 +00:00
|
|
|
/* first see if we are or can somehow become root, if so prepare
|
|
|
|
* for drop even if not requested on command line */
|