annotate packages/redhat/noffle-xinetd @ 279:49b452b667a6 noffle

[svn] * src/util.c: localTimeDiff() cached its value and recalculated it every hour of clock time, regardless of the time the calculated was based on. This is potentially dangerous at daylight saving changes. So instead use the cached last result only when the new request is to be based on a time in the same hour as the cached result. * src/util.c: Replace the alternate Utl_mktimeGMT() implementation used when timegm() is not available. The previous version, as suggested by the glibc timegm() man page, used setenv() and unsetenv() for changing the environment. These aren't POSIX function, and the POSIX putenv() (a) is tricky to manage if the same var is being constantly update and memory isn't to leak, and (b) provides no way to remove an environment entry. So change to an implementation Wget uses. This should compile on not glibc systems - the previous version failed to build on Solaris.
author bears
date Sun, 17 Nov 2002 15:18:19 +0000 (2002-11-17)
parents d6e02253fb76
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
245
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
1 # default: off
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
2 # description: Usenet newsserver for small sites
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
3
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
4 service nntp
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
5 {
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
6 disable = yes
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
7 socket_type = stream
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
8 protocol = tcp
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
9 wait = no
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
10 user = news
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
11 group = news
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
12 only_from = 127.0.0.1
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
13 server = /usr/bin/noffle
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
14 server_args = -r
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
diff changeset
15 }