tftpd.c (3cbc8e752b92442c784306731e94fd904de3373c) | tftpd.c (615d167cb88ca895278a26b22052f663c5228407) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1983, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 128 unchanged lines hidden (view full) --- 137 char recvbuffer[MAXPKTSIZE]; 138 int allow_ro = 1, allow_wo = 1, on = 1; 139 pid_t pid; 140 141 tzset(); /* syslog in localtime */ 142 acting_as_client = 0; 143 144 tftp_openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP); | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1983, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 128 unchanged lines hidden (view full) --- 137 char recvbuffer[MAXPKTSIZE]; 138 int allow_ro = 1, allow_wo = 1, on = 1; 139 pid_t pid; 140 141 tzset(); /* syslog in localtime */ 142 acting_as_client = 0; 143 144 tftp_openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP); |
145 while ((ch = getopt(argc, argv, "cCd:F:lnoOp:s:Su:U:wW")) != -1) { | 145 while ((ch = getopt(argc, argv, "cCd::F:lnoOp:s:Su:U:wW")) != -1) { |
146 switch (ch) { 147 case 'c': 148 ipchroot = 1; 149 break; 150 case 'C': 151 ipchroot = 2; 152 break; 153 case 'd': --- 692 unchanged lines hidden --- | 146 switch (ch) { 147 case 'c': 148 ipchroot = 1; 149 break; 150 case 'C': 151 ipchroot = 2; 152 break; 153 case 'd': --- 692 unchanged lines hidden --- |