Yaroslav Tykhiy
215a9f9de5
Make chrootdir global and use it in log messages
...
regarding restricted users.
MFC after: 2 weeks
2004-11-18 14:15:32 +00:00
Yaroslav Tykhiy
2b7eb1c076
Nitpicking on style(9) and whitespace.
...
Tested with: md5(1)
2004-11-18 13:55:15 +00:00
Yaroslav Tykhiy
0c4b401f76
Use __FBSDID.
2004-11-18 13:46:29 +00:00
Yaroslav Tykhiy
405e2987ca
Don't say, "file: permission denied," if the operation
...
is disabled entirely.
2004-11-18 11:50:01 +00:00
Yaroslav Tykhiy
02c9749295
Use uniform punctuation, capitalization, and language style
...
in server messages wherever this doesn't contradict to a particular
message format.
2004-11-18 11:45:13 +00:00
Yaroslav Tykhiy
eb5b2bb3ae
Apply __printflike() to the appendf() prototype so the compiler
...
can detect format errors.
2004-11-18 11:32:35 +00:00
Yaroslav Tykhiy
82c03024c2
Fix perror_reply() vs. reply() usage.
2004-11-18 11:27:31 +00:00
Yaroslav Tykhiy
4a3e5acd8d
'\n' needs not to appear in reply() strings.
2004-11-18 11:07:00 +00:00
Yaroslav Tykhiy
6b2dee6ba1
Log pathname arguments to ftp commands as the user specified them;
...
add the working directory pathname to the log message if any of
such arguments isn't absolute. This has advantage over the old
way of logging that an admin can see what users are actually trying
to do, and where. The old code was also not too robust when it
came to a chrooted session and an absolute pathname.
Pointed out by: Nick Leuta
MFC after: 2 weeks
2004-11-18 10:02:28 +00:00
Yaroslav Tykhiy
ac4f2391be
Use S_ISDIR() macro instead of a hand-rolled test.
2004-11-18 09:26:58 +00:00
Yaroslav Tykhiy
75933089af
getcwd() won't leave a error string in the buffer, unlike getwd().
2004-11-18 00:14:09 +00:00
Yaroslav Tykhiy
de9b6c0343
Use POSIX functions instead of legacy ones:
...
getwd() -> getcwd()
wait3() -> waitpid()
2004-11-17 22:43:46 +00:00
Yaroslav Tykhiy
7e295315e6
Kill more unneeded casts found.
...
Noticed by: Nick Leuta <skynick -at- mail.sc.ru> (some of them)
2004-11-17 11:52:41 +00:00
John Baldwin
165204a75f
Remove 80386 support from the ELF run time linker.
2004-11-16 20:45:51 +00:00
Yaroslav Tykhiy
3b48b87700
Don't invent ways of capitalization orthogonal to the English grammar.
2004-11-15 12:47:44 +00:00
Yaroslav Tykhiy
41c57b487e
RFC 959 states that the following codes should be used
...
for status replies on file system objects:
212 Directory status.
213 File status.
Reported by: Oleg Koreshkov <okor -at- zone.salut.ru>
MFC after: 1 week
2004-11-15 12:41:56 +00:00
Ruslan Ermilov
1b1aa7e465
So do it like we do in usr.bin/tip/tip/Makefile. ;)
2004-11-14 22:18:31 +00:00
Jens Schweikhardt
443ceb1c7e
Revert previous commit. As ru explains:
...
In the old world (as the surrounding comment in makefile says), there
was the /usr/libexec/ld-elf.so.1 binary which is now a symlink to
/libexec/ld-elf.so.1. To symlink, we need to make sure that the
_target_ (and the target is /usr/libexec/ld-elf.so.1) doesn't have
"schg" flag set. A real solution is to protect the chflags call only if
target exists, like we do in usr.bin/tip/tip/Makefile.
Requested by: ru
2004-11-14 21:14:06 +00:00
Jens Schweikhardt
6ccc491b4b
Avoid an (ignored) error by invoking chflags on the link target, not the
...
symlink.
PR: kern/73016
Submitted by: John E. Hein <jhein@timing.com>
MFC after: 1 week
2004-11-14 12:47:20 +00:00
Bjoern A. Zeeb
6c58990d47
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
...
If turned on no NIS support and related programs will be built.
Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il>
PR: bin/68303
No objections: des, gshapiro, nectar
Reviewed by: ru
Approved by: rwatson (mentor)
MFC after: 2 weeks
2004-11-13 20:40:32 +00:00
Yaroslav Tykhiy
6e4b0a55f7
Using off_t to pass a block size is obvious overkill.
...
The size_t type is better suited for that, particularly because
the "blksize" argument is to be passed to malloc() and read().
On 64-bit archs it's more to a style issue, but the good style
of coding in C is also important.
2004-11-13 13:42:43 +00:00
Yaroslav Tykhiy
e3765043a8
Kill ancient casts to integral types left from the K&R era.
...
They're unneeded and sometimes erroneous now.
2004-11-13 13:15:47 +00:00
John Baldwin
2939195e46
Remove these unused files before any other archs include the same bogus
...
file.
2004-11-12 18:05:30 +00:00
Peter Wemm
24b4ec3d21
The 32 bit compatability ld-elf32.so.1 cannot use i386_set_ldt() when
...
running on an amd64 kernel. Use the recently exposed direct %fs/%gs set
routines instead for the TLS setup of 32 bit binaries.
2004-11-06 03:32:07 +00:00
Ruslan Ermilov
dee651eb15
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
Yaroslav Tykhiy
8c1c21f2ef
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
Yaroslav Tykhiy
bb4641e28b
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
Suleiman Souhlal
6c2a9753f2
Implement TLS relocations for powerpc.
...
Approved by: grehan (mentor)
2004-11-02 09:47:01 +00:00
Suleiman Souhlal
5bbd22ee8d
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
Yaroslav Tykhiy
545ea86459
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
Yaroslav Tykhiy
de45162d8c
- 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
Yaroslav Tykhiy
c29b9b4797
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
Yaroslav Tykhiy
c999732b45
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
Ruslan Ermilov
a35d88931c
For variables that are only checked with defined(), don't provide
...
any fake value.
2004-10-24 15:33:08 +00:00
Stefan Farfeleder
b08f8f39ca
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
Yaroslav Tykhiy
b4585cc137
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
Yaroslav Tykhiy
2f492fc883
Clean-up around sendfile(): drop an excessive check for error condition.
2004-10-15 09:38:13 +00:00
Yaroslav Tykhiy
2e22b91434
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
Jens Schweikhardt
69ffe299bd
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
Warner Losh
780afd18cd
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
Olivier Houchard
34be051190
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
Olivier Houchard
0e030636cb
Use add instead of saving the sp in a register.
2004-09-28 14:41:15 +00:00
Maxim Konovalov
6d4a0e75fc
Indent.
2004-09-24 13:22:45 +00:00
Maxim Konovalov
40e677651c
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
Olivier Houchard
9ac88d19dc
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
Tom Rhodes
3a710cbaba
Remove named-xfer, it does not exist in BIND 9.
2004-09-22 14:17:56 +00:00
Dag-Erling Smørgrav
cd3ee173f9
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 Konovalov
9f09e3bbc6
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
David E. O'Brien
1ca2208839
Add some details about our wonderful system.
2004-08-21 03:36:47 +00:00
David E. O'Brien
46c33242d2
Turn on the FreeBSD login user capabilities database support.
2004-08-18 06:46:25 +00:00