File atftp-drop_privileges_non-daemon.patch of Package atftp
Index: atftp-0.7.5/tftpd.c
===================================================================
--- atftp-0.7.5.orig/tftpd.c
+++ atftp-0.7.5/tftpd.c
@@ -99,8 +99,8 @@ int deny_severity = LOG_NOTICE;
#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;
@@ -298,7 +298,7 @@ int main(int argc, char **argv)
dup2(sockfd, 0);
close(sockfd);
- /* release priviliedge */
+ /* release priviledge */
/* first see if we are or can somehow become root, if so prepare
* for drop even if not requested on command line */