Commit Graph

699 Commits

Author SHA1 Message Date
mrg
c8fbce69fd increment version. 1997-11-11 06:32:17 +00:00
mrg
6666673d8e oops, missed this bit in previous change. 1997-11-11 06:17:22 +00:00
mrg
8e2c08b183 add a "checkportcmd <class>" option that stops ftp bounce attacks. 1997-11-11 05:48:03 +00:00
lukem
52e679a138 fix so syslog works after chroot, by adding LOG_NDELAY to openlog.
from Andreas Wrede <andreas@planix.com>, [bin/4429]
1997-11-06 00:08:02 +00:00
lukem
dea85dc703 * remove duplicate inode entries, so files with multiple hard links are
only parsed once; results in a 33% speedup on a p5-200
* order SEE ALSO by section
1997-11-02 14:01:54 +00:00
lukem
7c059b1253 use $TMP and $LIST everywhere, remove $LIST upon successful exit 1997-11-02 01:26:10 +00:00
lukem
b0b8aac67b * use (``foo'') instead of (<em>foo</em>)
* order SEE ALSO on man section then alphabetical
* add -w to usage string
* deprecate register
* minor code move in newman section, to follow style of oldman section
1997-11-02 00:23:36 +00:00
mrg
3f5509a860 use the updated getNAME(8) now that it has a reasonable output. this
makes makewhatis several orders of magnitude faster for manual sources,
as we now avoid a costly `nroff -mandoc' for each one...
1997-11-01 15:06:09 +00:00
mrg
ef53ad130b add a manual for getNAME. also, change the `default' output to be in
a form much more useful for an apropos(1) database.  this will be used
by makewhatis(1) to generate the whatis.db file's now...
1997-11-01 15:03:51 +00:00
lukem
da49bfcda7 use CPPFLAGS instead of CFLAGS 1997-10-25 10:10:19 +00:00
cjs
3dd557ba9c Link with the stuff we compiled, rather that whatever random stuff happens
to be installed on the system we're compiling on.
1997-10-25 06:18:27 +00:00
jonathan
faca0ea24c Install our ELF-aware link.h into /usr/include on mips hosts. 1997-10-23 19:27:28 +00:00
lukem
e8cebc9784 use CPPFLAGS instead of CFLAGS 1997-10-22 05:55:52 +00:00
lukem
dc3678728d use CPPFLAGS instead of CFLAGS 1997-10-22 05:45:08 +00:00
lukem
10d5d0d9ce use CPPFLAGS instead of CFLAGS 1997-10-22 05:26:25 +00:00
enami
a7e4466d71 - Fix .Nm usage.
- Remove unnecessary white space at the beginning or end of line
1997-10-20 02:57:18 +00:00
enami
e50ac59ba3 Fix .Nm usage. 1997-10-20 02:53:32 +00:00
enami
6977f8a8d4 Fix .Nm usage. 1997-10-20 02:51:47 +00:00
enami
4de830012c Fix .Nm usage. 1997-10-20 02:49:31 +00:00
enami
c44131f35b Fix .Nm usage. 1997-10-20 02:46:44 +00:00
enami
966d406a9b Fix .Nm usage. 1997-10-20 02:42:46 +00:00
enami
acb5c4ac49 - Fix .Nm usage.
- Use .Ar to refer an argument.
1997-10-20 02:41:18 +00:00
lukem
3c17756202 build objdir for manpage. from Dave Huang <khym@bga.com> in [bin/4294] 1997-10-20 02:39:50 +00:00
enami
f5d3fbbc6f Fix .Nm usage. 1997-10-20 02:38:33 +00:00
enami
4bdefdde9f Fix .Nm usage. 1997-10-20 02:36:06 +00:00
enami
f01968e9e9 - Fix .Nm usage.
- Refer finger by .Xr instead of .Nm.
1997-10-20 02:30:36 +00:00
enami
abc05455ed Fix .Nm usage. 1997-10-20 02:27:53 +00:00
enami
0fad87214f - Fix .Nm usage.
- Sort SEE ALSO list first by section.
1997-10-20 02:26:44 +00:00
enami
27ffa06956 Fix .Nm usage. 1997-10-20 02:19:24 +00:00
enami
ea62d80033 .Nm telnetd. -> .Nm telnetd . 1997-10-20 02:14:56 +00:00
enami
71d6ede458 No need to declare optind and optarg. 1997-10-20 02:12:17 +00:00
enami
31fb50310e Fix usage of .Nm. 1997-10-20 02:10:22 +00:00
enami
89fcd44a31 - No need to declare optind and optarg.
- Instead of to declare errno, include <sys/errno.h>.
1997-10-20 02:08:30 +00:00
enami
7eda8e3153 Fix usage of .Nm. 1997-10-20 02:05:33 +00:00
enami
80b4fe5249 No need to decalre optind. 1997-10-20 02:04:03 +00:00
enami
f4c54f2517 No need to declare optind. 1997-10-20 02:00:36 +00:00
cjs
fd97c4a995 Add uugetty capability. 1997-10-19 23:46:07 +00:00
mycroft
b247da14fe Use S_IS*(), not S_IF*. 1997-10-19 18:17:27 +00:00
mycroft
1336137028 Use remove(3) rather than stat(2)ing the file, yadda yadda.
Simpler, and DTRT for symlinks.
1997-10-19 18:16:19 +00:00
mycroft
3ff72472fe Use S_IS*(), not S_IF*. 1997-10-19 18:15:23 +00:00
mark
919c9148f3 Add support for PIC code.
Add support for ld.so
1997-10-17 21:25:42 +00:00
hubertf
c9bf407da0 Add makewhatis.8.
Closes PR 1809 by Robert Dobbs <banshee@gabriella.resort.com>
1997-10-17 20:37:59 +00:00
mikel
b006e71442 startslave() prototype is independent of AUTHENTICATION 1997-10-16 06:59:09 +00:00
mikel
2bb7a441c1 kill old-style declaration of strchr()
add back variable needed for -DAUTHENTICATION
1997-10-16 06:55:38 +00:00
mikel
0b47cd38cf don't include <sys/cdefs.h> twice, kill old-style getpty() declaration 1997-10-16 06:52:52 +00:00
mikel
61d5a37185 add commented CFLAGS for AUTHENTICATION, remove list of crypto files 1997-10-16 06:49:11 +00:00
mikel
60f096100c kill old-style getenv() declaration 1997-10-16 06:46:50 +00:00
mikel
fa8a687958 kill some excess whitespace 1997-10-16 06:45:45 +00:00
christos
776130f509 Handle relocation of misaligned symbols. Handle all three cases by the same
macro for clarity.
1997-10-14 17:17:52 +00:00
lukem
2ce4ef15e6 use <termcap.h> 1997-10-14 01:14:20 +00:00
lukem
e8b9c15144 rcsid fascism 1997-10-13 09:28:10 +00:00
mycroft
30c6e0cebf SRCS must be defined *before* bsd.prog.mk is included... 1997-10-12 14:06:21 +00:00
mycroft
307211b0f5 Add some krb5 hooks, though it probably doesn't work yet. 1997-10-12 14:04:36 +00:00
mycroft
76a39e6e7c Actually, do Kerberos first, since we want to get a TGT if possible.
Also, clean up some minor cruft.
1997-10-12 13:52:51 +00:00
mycroft
4bf23f1a50 Format police.
Also, try s/key before Kerberos.
1997-10-12 13:18:56 +00:00
mycroft
085fe346f1 Oops; fix typo. 1997-10-12 13:09:11 +00:00
mycroft
5566d4c1f1 Conditionalize s/key support. 1997-10-12 13:08:41 +00:00
mrg
89b6eee876 merge lite-2 rcsids 1997-10-08 09:12:46 +00:00
mrg
2268d2dfb3 merge lite-2 Makefiles (rcsids), and turn on WARNS for all of libexec. 1997-10-08 09:07:11 +00:00
mrg
896c1cce87 WARNS?=1 1997-10-08 08:55:35 +00:00
mrg
ee62445dbf WARNS?=1. RCS ids. 1997-10-08 08:45:07 +00:00
mrg
0cb14e7641 fix warnings on the alpha. 1997-10-08 07:24:51 +00:00
mrg
7796977716 WARNS?=1. RCS ids. 1997-10-08 07:07:40 +00:00
enami
f002de2f5a Put a whitespace after the keyword `switch'. 1997-10-08 01:09:02 +00:00
enami
7c92c8b774 Compare a return value of getopt() against -1 instead of EOF. 1997-10-08 01:04:31 +00:00
enami
cd2bc25e31 Put a whitespace after the keyword `switch'. 1997-10-08 01:03:00 +00:00
enami
34bbb35be5 Compare a return value of getopt() against -1 instead of EOF. 1997-10-08 01:02:00 +00:00
enami
782a241926 Put a whitespace after the keyword `switch'. 1997-10-08 01:00:41 +00:00
enami
42eb13e478 Compare a return value of getopt() against -1 instead of EOF. 1997-10-08 00:56:46 +00:00
mrg
ad681f7eae WARNS?=1. RCS ids. 1997-10-07 13:44:03 +00:00
mrg
3d8d628a25 WARNS?=1. RCS ids. 1997-10-07 13:39:56 +00:00
mrg
cd359aa2a0 fix warnings on alpha. 1997-10-07 13:13:41 +00:00
mrg
08a6736e8b WARNS?=1. RCS ids. did not merge very much of lite-2. 1997-10-07 13:07:44 +00:00
mrg
a5a68ff5f2 WARNS?=1. RCS ids. 1997-10-07 11:28:16 +00:00
mrg
59093d44d1 WARNS?=1. RCS ids. cleanup a little. 1997-10-07 11:15:16 +00:00
mrg
51564e1ed5 WARNS?=1 1997-10-07 11:08:51 +00:00
mrg
16e14cfd8d WARNS?=1. RCS ids 1997-10-07 10:57:08 +00:00
mrg
78a8e977dc WARNS?=1. 1997-10-07 10:49:16 +00:00
mrg
04766f1d6e WARNS?=1. RCS ids 1997-10-07 10:43:53 +00:00
mrg
f37be23211 WARNS?=1 1997-10-07 10:37:30 +00:00
mrg
e84cc39ec8 merge lite-2. 1997-10-07 10:29:01 +00:00
mrg
da5c78b3aa merge lite-2. WARNS?=1. 1997-10-07 10:11:29 +00:00
mrg
2435b32dc3 oops, forgot to add WARNS here. 1997-10-07 09:48:03 +00:00
mrg
60cef5019e WARNS?=1. merge lite-2. 1997-10-07 09:46:45 +00:00
mrg
7bcd5087e9 WARNS?=1. also, call setlogin(). 1997-10-07 09:29:50 +00:00
lukem
96ad830ee2 - add '-C user', which runs checkaccess(user) and exits with the result
(0 == user allowed in /etc/ftpusers, 1 == user denied in /etc/ftpusers).
  from Jim Bernard <jbernard@tater.mines.edu> in [security/4061] with mods
- getopt returns -1 not EOF
- in lostcon(), call dologout(1) not dologout(-1);
1997-09-23 14:25:30 +00:00
lukem
550665a814 implement '-c confdir', which allows the specification of an alternate
directory to look for the various configuration files, overriding /etc.
From Matthias Scheler <tron@lyssa.owl.de> in [bin/4133]
1997-09-23 13:56:39 +00:00
cjs
74762c9036 Mention that if the user's shell is null, it's assumed to be /bin/sh.
(Pointed out by Jim Bernard <jbernard@tater.mines.edu>.)
1997-09-21 22:59:03 +00:00
thorpej
46f168d9f2 The "ufp" global wasn't used in any XIDLE code, so don't declare it inside
an #ifdef XIDLE.  Instead, declare it as an automatic in each function that
uses it.
1997-09-19 00:50:04 +00:00
lukem
67d65f4970 - ensure 257 reply codes from PWD and MKD are RFC959 compliant:
257 "dirname" some message
  (any "s in dirname should be doubled, per the RFC)
- don't put an extra / in the output of NLST if the last char in the
  directory is a /
- bump the version to 7.01 because of these fixes
1997-09-18 07:27:35 +00:00
christos
73f3225d4b fix WARNS=1 1997-09-17 20:19:43 +00:00
christos
fa64ad7ffc Fix for WARNS=1 1997-09-17 20:16:07 +00:00
christos
4c865ddc97 Oops forgot this. 1997-09-17 16:36:25 +00:00
christos
06f9c7876a Fix WARNS problems. sigsetjmp() was missing an argument. 1997-09-17 16:35:54 +00:00
mrg
59c4211ee9 -s' for secure' doesn't make much sense. just note that it disables
forwarding of finger requests.  also, log the text of the request if
supplied.  cleanup for WARNS=1.
1997-09-09 05:38:24 +00:00
mrg
2db0ee4c18 add "-g" flag: this just gets passed to finger. 1997-09-09 02:40:42 +00:00
lukem
05efcc80e4 fix grammo 1997-08-26 13:10:39 +00:00
kleink
66105c37fc Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
lukem
0bba8ce38d * don't depend upon buffer returned by fgetln() to remain. fix mainly
from Tatoku Ogaito <tacha@tera.fukui-med.ac.jp> in [bin/3967]
* fgetln() doesn't \0 terminate its string. look for the \n and replace
  it with \0 (if no \n, ignore the line - it's most likely corrupt)
* more intensive checks on strdup() returns (not a current mem leak,
  but depended upon code elsewhere to cleanup - not good)
* cleanup some syslog error messages
1997-08-14 02:06:15 +00:00
mikel
2db7de74e1 set WARNS?=1 1997-08-06 07:23:34 +00:00
mikel
64521eb343 use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
1997-08-06 07:22:24 +00:00
mikel
a6da6f6585 don't include <signal.h> twice 1997-08-06 05:40:28 +00:00
mycroft
24704de42f Ignore SIGCHLD. 1997-08-04 18:00:14 +00:00
perry
72c4d6ba1c now finds symlinked man pages, as submitted by Thorsten Frueauf in pr-3087 1997-08-04 03:01:59 +00:00
mikel
a7d3a434b9 avoid void pointer arithmetic 1997-08-01 06:33:39 +00:00
jtc
a158249541 Fix files using old TNF copyright notice 1997-07-31 00:08:03 +00:00
perry
365cb9dcc8 clean up .Nm entries, and change a silly .Nm gettytab 5 to an .Xr 1997-07-31 00:06:20 +00:00
mrg
04b009a915 be safe with some buffers. 1997-07-21 05:13:10 +00:00
fvdl
6ca80cfb1e Make sure that the last fields in the transmitted stat structs are set
correctly. PR 809, from Jarle Greipsland
1997-07-19 20:25:44 +00:00
christos
df79fb912d Add the necessary -I flag to pick up the libc/include/extern.h 1997-07-14 02:56:54 +00:00
mikel
866447fc67 xref gethostname(3) and uname(3) instead of obsolete gethostname(2)
and uname(2); some other minor cleanup
1997-07-14 01:29:56 +00:00
matthias
a57d8745e7 * Truncate the cinv table. It was twice as long as necessary as a result
of an earlier version of th code.
* Really align the cinv table modulo 0x200. Thank's to Ian for telling me
  where I goofed up.
1997-07-11 23:39:56 +00:00
mikel
fdecd6a253 don't xref obsolete crypt(1) 1997-07-10 07:23:03 +00:00
matthias
df05f3a8b1 * Flush the icache from user mode. The original code and the idea came from
Ian Dall. I just did some slight optimizations.
1997-07-09 19:32:51 +00:00
christos
1a1bf9f574 Use WARNS=1 1997-07-06 22:52:28 +00:00
christos
a838817b21 Add WARNS=1 1997-07-01 20:49:59 +00:00
pk
72023de51f Do not free dlopen'ed map structures twice.
Plug memory leak when opening the same object mor than once.
1997-06-30 22:10:06 +00:00
pk
7a27a9dd43 Fix typo in free_link_map(); noticed by Mike Grupenhoff. 1997-06-30 20:49:40 +00:00
christos
cc36d26be2 Install as ntalkd 1997-06-29 19:22:04 +00:00
christos
c030b3a0c2 We are not going to be running as root anymore, so no need to check for that. 1997-06-29 19:19:15 +00:00
christos
30b8660384 - use ttymsg from libutil
- clean warnings
- PR/3778: Eric Fischer: talkd should find the least idle terminal
1997-06-29 19:13:01 +00:00
christos
5a6c78298f Merge in lite-2 1997-06-29 18:01:12 +00:00
pk
c682966345 Patch from Chris Demetriou to unmap an object on last dlclose(), which
had not be implemented. It would cause an "adress space leak" and, if
the same object would opened multiple time, unwanted relocations.
Re: Comment from Chris:

"The a.out ld.so has some problems with dlclose.  It doesn't properly
unmap objects which are dlclosed.  That's a known problem (though a
serious one for programs which dlopen then dlclose lots of objects,
because it causes address space exhaustion), but it has a
previously-unknown side-effect.

If a single object is dlopened, then dlclosed, then dlopened _again_,
the relocations will be processed again.  That causes obvious
problems."
1997-06-26 20:52:06 +00:00
hannken
c9ccc894a4 Add missing braces. `check_modify' returns 0 without a reply. See PR #3779. 1997-06-24 08:49:27 +00:00
mrg
586ed80911 install all man pages. 1997-06-23 13:25:41 +00:00
mrg
0553741950 move man pages into share/man. 1997-06-23 04:51:16 +00:00
christos
c22375d4d3 missed some warnings. 1997-06-22 22:33:12 +00:00
cjs
fedfe5c4d3 %qd wants long long. Thus, if you're going to turn on warnings for
printf format strings, you've got to make sure you cast quantities
passed to %qd to long long because on 64-bit machines they're often
just long, which is not the same, even when it's the same size.
1997-06-21 18:01:35 +00:00
mellon
973a248f85 Need prototype for klogin() - probably ought to go in a header file, but klogin probably ought to go in a library first 1997-06-21 04:38:54 +00:00
pk
4dd59ab4df Fix typos (PR#3761). 1997-06-20 20:38:08 +00:00
christos
2424c4f970 - Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
1997-06-18 19:05:46 +00:00
lukem
31547ec641 * implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
  all or none) basis:
    * on-the-fly execution of a command to build the file (a ``conversion''),
      providing support for "get dirname.tar" and the like.
    * displaying the contents of a file when a directory is entered
      for the first time.
    * maximum value for timeout (replaces -T).
    * control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
    * notifying the user of the existance of a files matching a glob
      pattern when a directory is entered for the first time.
    * default value for timeout (replaces -t).
    * default umask (replaces -DGUEST_CMASK and -u).
  The conversion, display, and notify functionality was based on code by
  Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
  -t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
  stderr stream mixing with the stdout stream during a conversion,
  as this can corrupt the stream.
1997-06-14 08:43:26 +00:00
mikel
0bf17c4d39 fix typo; from Saitoh Masanobu in PR misc/3696.
also comma-separate and reorder xrefs.
1997-06-03 04:24:25 +00:00
cjs
7a66732d34 Back out BUILDDIR and NOINSTALL changes. 1997-05-31 21:21:13 +00:00
cjs
097e643f79 Remove an ifdef. Add comment about -nostdlib vs. ELF ld. 1997-05-30 14:06:34 +00:00
veego
d0b955050b Use the extra LDFLAGS if OBJDIR is defined. 1997-05-30 11:39:01 +00:00
lukem
dfb524fa46 * don't log failed usernames to ftp.notice; use authpriv.notice instead.
closes [bin/1571]
* don't quit if "PASV" is received without the user being logged in.
  closes [bin/2401], albiet with a modified test.
1997-05-29 10:31:48 +00:00
cgd
c917dfb5b2 Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
	.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
	.Dd "month day, year"
which is what these pages did.
1997-05-29 01:48:05 +00:00
cjs
5fd7ce7066 These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
1997-05-26 03:55:19 +00:00
cjs
c21a83a6fb PR 3670 from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>
Fix typos.
1997-05-26 00:40:39 +00:00
cjs
77629eb339 PR 3667 from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>.
Fix section number for spray(8).
1997-05-25 03:55:58 +00:00
cjs
93b985ed90 Allow setting the directory to which anonymous users chdir from
the command line. Document -u option. A couple of minor cleanups.
1997-05-23 22:09:48 +00:00
pk
37d70219e5 * NULL => 0 (Arne Juul; PR#3629)
* Nuke spacoids.
1997-05-17 19:35:14 +00:00
pk
58efb9d20c NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:24:44 +00:00
pk
ff90cf758b Keep track of `dlsym()' symbol lookup scope differently. There's (currently)
only one special case: a NULL argument to dlopen(); return a special
token for that case.
1997-05-03 08:00:02 +00:00
tls
037708cbd4 Sync to 4.4BSD-Lite2 1997-04-29 21:19:05 +00:00
tls
80eef670d5 fix a couple of unlikely buffer overflows. 1997-04-29 21:01:54 +00:00
tls
83c7e41542 Sync to 4.4BSD-Lite2 1997-04-29 20:39:10 +00:00
tls
eec1ea6c3f Import from 4.4BSD-Lite2 1997-04-29 20:07:31 +00:00
cjs
6ed41b9085 /etc/ftpusers now matches globs against the username. mycroft suggested this. 1997-04-29 04:00:39 +00:00