ru
f0fbc30e0d
Introduce the PRECIOUSPROG knob in bsd.prog.mk, similar
...
to PRECIOUSLIB from bsd.lib.mk. The side effect of this
is making installing the world under jail(8) possible by
using another knob, NOFSCHG.
Reviewed by: oliver
2004-11-03 18:01:21 +00:00
yar
77ad2555a3
Fix logxfer() by using realpath(3) instead of playing with getwd(3).
...
Previously logxfer() used to record bogus pathnames to the log
in some cases, namely, when cwd was / or "name" was absolute.
Noticed by: Nick Leuta
MFC after: 2 weeks
2004-11-03 06:52:40 +00:00
yar
9ff4238c2a
Replace the last occurence of (long long) and %qd with
...
(intmax_t) and %jd, which is the right way to printf
an off_t in the presence of <stdint.h>.
Submitted by: Nick Leuta
2004-11-02 18:48:44 +00:00
ssouhlal
7cf9959da0
Implement TLS relocations for powerpc.
...
Approved by: grehan (mentor)
2004-11-02 09:47:01 +00:00
ssouhlal
d6dc36dcc0
Do the TLS offset allocations before relocations, as otherwise there
...
can be overlap in the TLS offsets, if the relocations are done in a
certain order.
Approved by: dfr, grehan (mentor)
2004-11-02 09:42:21 +00:00
yar
75e4d56d9f
OpenPAM allows passing a NULL "pamh" to pam_strerror() to indicate
...
that the creation of a PAM context has failed.
N.B. This does not apply to pam_strerror() in RELENG_4, it
will mishandle a NULL "pamh".
Discussed with: des
2004-11-01 16:05:57 +00:00
yar
610346f6c5
- Stop shadowing global "pamh" by a local variable in auth_pam().
...
- Stop calling pam_strerror() with NULL pamh.
- Add a missing call to pam_end().
PR: bin/59776
Submitted by: Nick Leuta <see PR for email>
MFC after: 2 weeks
2004-10-30 17:30:56 +00:00
yar
4e42ff84eb
Describe the semantics of the sgetpwnam() helper function
...
in the comment above it so that nobody will save pointers
returned inside "struct passwd" across the calls to the function.
2004-10-30 16:11:15 +00:00
yar
9167ecf0cb
Log the actual number of bytes sent on the wire to /var/log/ftpd
...
instead of the disk size of the file sent. Since the log file
is intended to provide data for anonymous ftp traffic accounting,
the disk size of the file isn't really informative in this case.
PR: bin/72687
Submitted by: Oleg Koreshkov
MFC after: 1 week
2004-10-24 20:12:08 +00:00
ru
5db2b9d5b3
For variables that are only checked with defined(), don't provide
...
any fake value.
2004-10-24 15:33:08 +00:00
stefanf
8d3bcc2e7a
Remove definition of struct dom_binding, it's non-standard C code and
...
unnecessary since src/include/rpcsvc/ypclnt.h's revision 1.10.
2004-10-17 19:33:33 +00:00
yar
6cff4ecf57
We must not fall back to the old way (read-write)
...
if sendfile() transferred some data before throwing
a error condition because sendfile() won't move the
file offset for read() to start from.
MFC after: 2 weeks
2004-10-15 09:51:36 +00:00
yar
e6e865ec71
Clean-up around sendfile(): drop an excessive check for error condition.
2004-10-15 09:38:13 +00:00
yar
3cdbfddc40
Account for the fact that sendfile(2) may hit the end of file
...
prematurely, e.g., if the file has been truncated by someone else.
PR: bin/72649
Submitted by: Oleg Koreshkov (portions)
MFC after: 2 weeks
2004-10-15 09:31:08 +00:00
schweikh
e129b0abc5
Correct grammos. Added BUGS: may mishandle nonstandard manual pages,
...
especially third party junk^Wpages, like emulators/mtools(1) and friends.
2004-10-06 18:31:45 +00:00
imp
e1f9385d4b
Report once that the device isn't there, but keep trying. Don't
...
filter the errno values. They don't make as much sense as they used
to given how we do devices in /dev.
2004-09-29 20:55:14 +00:00
cognet
504d9a68b3
Don't try to relocate the dynamic loader in reloc_non_plt(). It has already
...
been done before.
2004-09-28 14:43:12 +00:00
cognet
a450d7f91f
Use add instead of saving the sp in a register.
2004-09-28 14:41:15 +00:00
maxim
41902e813d
Indent.
2004-09-24 13:22:45 +00:00
maxim
b218fbfba3
o Merge rev. 1.5 libexec/ftpd/ftpd.c from DragonflyBSD:
...
Do not unconditionally fork() after accept(). accept() can
return -1 due to an interrupted system call (i.e. SIGCHLD).
If we fork in that case ftpd can get into an
accept()/SIGCHLD/fork/[fail]/repeat loop.
Reported-by: fabian <fabian.duelli@bluewin.ch>
Obtained from: DragonflyBSD
MFC after: 1 month
2004-09-24 13:21:52 +00:00
cognet
f73db50f56
Add stubs for TLS.
...
Arbitraly choose the 2nd variant until I figure out which one I should use.
2004-09-23 23:04:52 +00:00
trhodes
97ba99e4ad
Remove named-xfer, it does not exist in BIND 9.
2004-09-22 14:17:56 +00:00
des
a4c12f8006
Switch from BIND 8 to BIND 9.
...
Submitted by: (in part) dougb@, trhodes@
Reviewed by: dougb@, trhodes@, re@
MFC after: 5 days
2004-09-21 19:01:48 +00:00
maxim
6c3a896977
Avoid accidental use of ANSI C trigraphs.
...
Spotted by: Pawel Worach
Obtained from: NetBSD (rev. 1.11, 1.13)
2004-08-21 07:23:41 +00:00
obrien
22dcfa59a7
Add some details about our wonderful system.
2004-08-21 03:36:47 +00:00
obrien
a1194af70b
Turn on the FreeBSD login user capabilities database support.
2004-08-18 06:46:25 +00:00
marius
24ad8a9842
Instead of "OpenFirmware", "openfirmware", etc. use the official spelling
...
"Open Firmware" from IEEE 1275 and OpenFirmware.org (no pun intended).
Ok'ed by: tmm
2004-08-16 15:45:27 +00:00
cperciva
e629b37603
Join the 21st century: Cryptography is no longer an optional component
...
of releases. The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.
Approved by: re (scottl), markm
Discussed on: freebsd-current, in late April 2004
2004-08-06 07:27:08 +00:00
dfr
c42f6bfee0
Add stubs for powerpc TLS.
...
Submitted by: ssouhlal
2004-08-04 19:12:14 +00:00
dfr
4e9853427f
Add support for Thread Local Storage.
2004-08-03 08:51:00 +00:00
yar
55224f76bf
ftpd(8) seems to be WARNS=2 clean now.
...
Tested on: i386, ia64, amd64, sparc64, alpha
2004-07-31 15:07:33 +00:00
yar
d786b94f15
Change `(foo *)0'' to
`NULL'' where it's possible
...
(and it appears possible throughout ftpd(8) source.)
It is not a mere issue of style: Null pointers in C
seem to have been mistaken one way or another quite often.
2004-07-31 15:03:17 +00:00
yar
06b7ed859f
Kill a small herd of casts to off_t where they were not needed.
...
Thank Fortune, the C compiler can figure out by itself the proper
conversion for assignments, comparisons, and prototyped function
arguments.
2004-07-31 14:46:41 +00:00
yar
634a2a6e4f
Printf(3) off_t values through conversion to intmax_t since
...
we've got <stdint.h> et al now. (This makes ftpd(8) WARNS=2 clean.)
2004-07-31 14:22:02 +00:00
yar
6f57f3272c
Kill an unused variable (heading to WARNS=2.)
2004-07-31 14:03:59 +00:00
yar
81692845b8
Convert a couple of bogus null statements to the right form.
...
(Heading to WARNS=2.)
2004-07-31 14:03:14 +00:00
yar
4cacae89d9
Ditto for (gid_t).
2004-07-30 17:30:07 +00:00
yar
dc8c8c95c0
Kill casts to (uid_t) obviously left from the K&R era.
...
Prototyping library functions in header files has rendered
them superfluous.
2004-07-30 17:27:23 +00:00
yar
8839880434
Add a comment to explain that the loop around the call to bind(2)
...
is not a hack, but it has a clear purpose.
2004-07-30 17:18:57 +00:00
yar
9fb1cda8d0
Open a socket for a data transfer in active mode using euid
...
of the current user, not root. This will allow neat things
like matching anonymous FTP data traffic with a single ipfw(8)
rule:
ipfw add ... tcp from any to any uid ftp
Note that the control connection socket still belongs to the
user ftpd(8) was started from, usually root.
PR: bin/65928
Submitted by: Eugene Grosbein <eugen at grosbein.pp.ru>
MFC after: 1 month
2004-07-30 16:57:42 +00:00
kan
44ddf6cddd
Call nmatch function with parameters casted to types the function actually
...
expects.
2004-07-29 18:05:20 +00:00
stefanf
e0b2a5b339
Fix a few cases that relied on 'implicit int' (constraint violation in C99).
2004-07-11 17:37:33 +00:00
ru
9f45c1d92e
mdoc(7) fixes.
2004-07-07 19:57:16 +00:00
stefanf
9dea8aeba1
Consistently use __inline instead of __inline__ as the former is an empty macro
...
in <sys/cdefs.h> for compilers without support for inline.
2004-07-04 16:11:03 +00:00
ru
305463f129
Deal with double whitespace.
2004-07-03 00:06:28 +00:00
ru
20fbd172b2
Mechanically kill hard sentence breaks.
2004-07-02 21:28:50 +00:00
ru
4b39413aeb
Removed trailing whitespace.
2004-07-02 19:07:33 +00:00
csjp
78ac741f00
The call to setuid(2) subsequently causes setgroups(2) to fail. setgroups(2)
...
requires super-user access in order to complete successfully.
Move setgroups(2) to execute before setuid(2) so that it is successful.
2004-06-30 18:58:19 +00:00
phk
f899356ae4
Nuke COMPAT_43
2004-06-25 10:11:28 +00:00
brian
453b5a4b34
Call tzset() at startup.
...
Submitted by: Andrzej ToboÅa <ato@iem.pw.edu.pl>
2004-06-21 10:47:12 +00:00