forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LICENSE. Pet portlint. Reduce REINPLACE_CMD use. Drop maintainership, I don't this anymore.
- Loading branch information
1 parent
b4721dd
commit cd58dfc
Showing
3 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- tftp/tftp.c.orig 2011-12-11 22:13:52 UTC | ||
+++ tftp/tftp.c | ||
@@ -48,7 +48,7 @@ extern int maxtimeout; | ||
#define PKTSIZE SEGSIZE+4 | ||
char ackbuf[PKTSIZE]; | ||
int timeout; | ||
-sigjmp_buf toplevel; | ||
+extern sigjmp_buf toplevel; | ||
sigjmp_buf timeoutbuf; | ||
|
||
static void nak(int, const char *); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- tftpd/tftpd.c.orig 2011-12-11 22:13:52 UTC | ||
+++ tftpd/tftpd.c | ||
@@ -76,7 +76,7 @@ static int ai_fam = AF_INET; | ||
#define TRIES 6 /* Number of attempts to send each packet */ | ||
#define TIMEOUT_LIMIT ((1 << TRIES)-1) | ||
|
||
-const char *__progname; | ||
+extern const char *__progname; | ||
static int peer; | ||
static unsigned long timeout = TIMEOUT; /* Current timeout value */ | ||
static unsigned long rexmtval = TIMEOUT; /* Basic timeout value */ | ||
@@ -389,7 +389,8 @@ int main(int argc, char **argv) | ||
p = strrchr(argv[0], '/'); | ||
__progname = (p && p[1]) ? p + 1 : argv[0]; | ||
|
||
- openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON); | ||
+ tzset(); | ||
+ openlog(__progname, LOG_PID | LOG_NDELAY, LOG_FTP); | ||
|
||
srand(time(NULL) ^ getpid()); | ||
|
||
@@ -938,7 +939,8 @@ int main(int argc, char **argv) | ||
syslog daemon gets restarted by the time we get here. */ | ||
if (secure && standalone) { | ||
closelog(); | ||
- openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON); | ||
+ tzset(); | ||
+ openlog(__progname, LOG_PID | LOG_NDELAY, LOG_FTP); | ||
} | ||
|
||
#ifdef HAVE_TCPWRAPPERS |