Commit Graph

1061 Commits

Author SHA1 Message Date
mrg
687403aa7a - clean up some more cruft
- support "talkd -l" for extra (syslog(3)) logging
- fix error in previous announce.c change
- use getopt
- add (missing) -d and -l descriptions to man page
1998-07-04 19:31:05 +00:00
mrg
fc0b820cbd - KNF.
- check return call of several important system calls
- clean up some more cruft.
- support "rexecd -l" for extra (syslog(3)) logging.
- avoid *sprintf
1998-07-04 19:03:20 +00:00
mrg
88bc5ea96c - KNF.
- check return call of several important system calls
- clean up some more cruft.
- support "uucpd -l" for extra (syslog(3)) logging.
- add a man page for uucpd.  did it really arrive in 4.2BSD as the code
  indicates?  that's what `HISTORY' says...
1998-07-03 18:09:48 +00:00
mrg
39fbcd87b6 - deal with fork failure better
- some more KNF nits
- no more "union wait"
1998-07-03 17:21:22 +00:00
mrg
750ef3b29d - use S_IWGRP over 020
- KNF
- ensure we don't overflow a buffer (don't think it would anyway).
- favour snprintf over sprintf (and varargs versions)
1998-07-03 11:54:08 +00:00
mrg
36407a9595 KNF. 1998-07-03 11:51:19 +00:00
mrg
d407e73999 clean up a bit of cruft. 1998-07-03 11:50:51 +00:00
mrg
ae7821a46c KNF. 1998-07-03 11:49:50 +00:00
mrg
896a03fbba KNF, and use MOUNT_FFS over "ffs" 1998-07-03 11:48:58 +00:00
mrg
b6134033e4 oops, lost this in previous change. 1998-07-03 04:10:43 +00:00
mrg
46b017828c - remove register
- KNF
- ensure hostname has trailling nul.
- use initgroups/setgid/setuid rather than just setuid, and do this earlier.
- find "from:" and "subject:" as well.
- use strvis(3) rather than some local crufty code.
1998-07-03 02:27:58 +00:00
mrg
9cc2c90c42 backout previous; there was no buffer overflow anymore. while i'm here,
fix some KNF and stop account information leakage in the case of logging
in as a non-existant user (did not prompt for a password for call crypt(3)
before returning "Login incorrect.")
1998-07-02 07:46:45 +00:00
tv
d643a3384e Allow PAGESIZE to be set via a -D option to cc (CLBYTES not a constant on
sparc; it is defined in terms of the kernel variable "nbpg")
1998-07-01 20:42:47 +00:00
tron
f5a8d207a9 Prevent buffer overflow on reverse lookup, fixes PR misc/5688 by
D'Arcy J.M. Cain.
1998-07-01 19:29:22 +00:00
tv
e3ab20461f Add the ability to disable passive connects in ftpd.conf (breaks RFC1123,
STD3, but needed in some firewall environments).
1998-06-30 20:18:52 +00:00
christos
d7b7ede245 Merge in changes from OpenBSD. 1998-06-27 21:15:42 +00:00
msaitoh
10171df916 add "-s" flag (like telnetd and login) 1998-06-26 18:12:00 +00:00
msaitoh
a5471c1dd8 add "-s" flag (SecureID). 1998-06-26 17:41:38 +00:00
kleink
e62a515e87 GLOB_QUOTE is gone; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
1998-06-21 12:16:35 +00:00
kleink
fc5d36f8e4 GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
1998-06-19 22:58:04 +00:00
mhitch
c01fadd882 Don't forget to update _rtld_objtail when _rtld_dlclose() removes the
current tail entry.
1998-06-16 03:24:13 +00:00
lukem
fc90756956 Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
1998-06-08 12:41:41 +00:00
lukem
9c9d43e6b5 support displaying the stderr output from a LIST or a conversion to
the user at the end of a transfer.
this generates a file in /tmp, so anonymous requires a
writable ~ftp/tmp, which you may not want to do (because it may
allow people to unwanted upload files).

XXX:	a better method of storing the stderr output would be nice, but
	is a lot more effort to implement. this feature can at least be
	used temporarily whilst debugging why an ftp conversion doesn't
	work.
1998-06-08 07:13:13 +00:00
mouse
7ccec6ac9f Show/log the strerror(errno) string when getcwd fails 1998-06-03 13:21:42 +00:00
hubertf
dde092b47d Fix some problems with failed getcwd commands, reported in PR bin/5531
by Saitoh Masanobu <msaitoh@spa.is.uec.ac.jp>.
1998-06-03 09:21:45 +00:00
kleink
76bc8071eb Clear the error indicator after retrieval (xref. dlerror(3)). 1998-05-30 18:28:31 +00:00
tv
106fae1a3a ...and clear DESTDIR in fake Makefile. 1998-05-24 03:54:12 +00:00
frueauf
21fc3e02fd Don't ignore compressed unformatted man pages and use $MKWHATIS where
makewhatis.sed should be used.
1998-05-23 14:26:05 +00:00
tv
044f139d81 Use a "smart" lookup of makewhatis.sed. 1998-05-23 13:42:25 +00:00
msaitoh
06db2e9ee4 fix typo 1998-05-22 19:00:40 +00:00
hubertf
80a44df7c2 use correct getopt parameters, as per PR 5480 from Konrad Schroder <perseant@hhhh.org> 1998-05-22 02:21:00 +00:00
christos
f7ab9656fe From chopps: be more picky about handling incorrectly formatted man pages.
Look for .Sh NAME; this breaks internationalized man pages. Someone could
put NLS support for it.
1998-05-21 23:21:48 +00:00
tv
2a0a609947 Don't try to get at ${DESTDIR} inside /usr/libexec/makewhatis; instead,
supply ${DESTDIR} as part of the command line argument in
src/share/man/Makefile, and use that modified $MANPATH to find
makewhatis.sed.
1998-05-21 11:40:11 +00:00
tv
b05a04267a In case NOPICINSTALL is set, get -lc_pic from src/lib/libc/(objdirname). 1998-05-21 00:31:05 +00:00
lukem
77c4126096 use TM_YEAR_BASE (not 1900) - not that we expect it to change in any case :) 1998-05-21 00:09:32 +00:00
pk
294ed94908 Optimize symbol/string table access slightly by precomputing their
locations at load time. These values don't change once the object is loaded.
1998-05-19 12:15:38 +00:00
mrg
638411ef77 - don't leak account information (from christoph badura)
- no need to copy remotehost to line, just use remotehost in both
  cases.  fixes problem reported by repsec (see http://www.repsec.com/)
1998-05-18 12:41:30 +00:00
thorpej
dd26162d11 Need <dlfcn.h> for Dl_info. 1998-05-14 01:55:28 +00:00
pk
d123bc84d4 Implement `dladdr()': find nearest symbol given an address. 1998-05-12 21:22:28 +00:00
pk
79bd77e1cc Add `dladdr()' rtld entry point. 1998-05-12 21:21:21 +00:00
mhitch
e8c1659e9a ${DESTDIR} isn't needed - which isn't what the example in
/usr/share/mk/bsd.README seems to indicate.
1998-05-11 19:30:15 +00:00
fair
42aff08cb4 fix a bad .Xr 1998-04-29 19:25:25 +00:00
fair
5ce6614a4f fix bad .Xr references 1998-04-29 08:33:11 +00:00
fair
dc026e0515 Change occurrences of "UNIX" to .Ux or .At as appropriate. 1998-04-28 06:00:51 +00:00
hubertf
930085f3c8 Add note on how to re-read this file (via PR 5341 by David Brownlee) 1998-04-22 08:11:10 +00:00
ross
8c7509c9ef Reference ttys(5). (David Brownlee, PR #5339) 1998-04-22 04:54:19 +00:00
lukem
6c4ddbba34 fix disabling of optimization on powerpc (set COPTS *after* <bsd.prog.mk>...) 1998-04-13 14:24:02 +00:00
fair
c90e2a4b2e getNAME now handles [nt]roff comments (.\") correctly. 1998-04-10 22:32:45 +00:00
fair
3b04f8e0b1 Add .Xr ttyaction 3 per PR#4647 1998-04-10 09:31:55 +00:00
mhitch
f00af7b07c Oops - when assembled with PIC, the jal gets expanded, so what used to be
in the branch delay slot was no longer getting executed at the proper time.
This resulted in a corrupt ps_strings pointer and caused programs trying to
use ps_strings to fail.
1998-04-09 04:45:08 +00:00
tv
482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
fvdl
98712f00f0 If a good matching shared library is found, don't look in the next
directories. This is compatible with the SunOS behaviour. Also,
it fixes a problem where it was not possible for some 3rd party
package to have a library with the same name as a library already
in the system, and a lower version number. The highest version
would always be picked. This particular problem shows up with Mozilla,
which has a libutil.so.1.0
1998-04-04 01:00:29 +00:00
kleink
60cfe27506 Need <time.h> for various definitions, so just include it in this one place. 1998-04-01 15:05:10 +00:00
kleink
ce38478eb8 No need to include <sys/tty.h>. 1998-04-01 15:02:47 +00:00
kleink
f604523fb6 Need <time.h> for localtime() prototype. 1998-04-01 14:51:54 +00:00
kleink
bcc2f4cc93 Need <time.h> for time() prototype, and rearrange inclusion order a bit. 1998-04-01 14:47:01 +00:00
kleink
2efb2aaff6 Need <time.h> for ctime() prototype. 1998-04-01 14:39:56 +00:00
kleink
d868740f80 Need <time.h> for time() and ctime() prototypes. 1998-04-01 14:37:45 +00:00
kleink
cd7d0f550d Need <time.h> for time() prototype. 1998-04-01 14:35:23 +00:00
kleink
223dbe1123 Need <time.h> for time(), localtime() and ctime() prototypes. 1998-04-01 14:31:59 +00:00
kleink
d1cd3dd49b Need <time.h> for time() prototype. 1998-04-01 14:29:08 +00:00
mrg
984d89b066 use static int, not just static 1998-03-30 01:53:45 +00:00
mrg
d5088f6ab0 remove register. 1998-03-30 01:52:02 +00:00
mrg
2ccff62399 break if ".PP" also 1998-03-30 01:45:27 +00:00
cjs
9308c6c2e1 Add uugetty manpage link. 1998-03-28 06:10:32 +00:00
cgd
c0ac8bae67 GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
should be using an ECOFF toolchain on NetBSD/alpha any more.
1998-03-28 00:50:41 +00:00
mycroft
ab8a4c5234 Allow a non-RTLD_GLOBAL object to refer to symbols in itself. 1998-03-26 23:33:12 +00:00
thorpej
c506364411 Make this work with objdirs. 1998-03-26 07:36:30 +00:00
mhitch
082edecc20 Add support for mips. 1998-03-25 04:12:32 +00:00
tron
7c26d20c65 Add support for "${DESTDIR}". 1998-03-21 23:46:00 +00:00
pk
d47d43b956 Use file size from fstat(2) to map the hints file, instead of fiddling
with incremental mmap()'s.  Squashes a bug which caused only the first
page of the hints file to unmapped.
1998-03-18 23:21:46 +00:00
pk
5ea8bb6d05 Implement RTLD_GLOBAL dlopen(3) flag.
Rename internal flags to avoid <dlfcn.h> name space collisions.
1998-03-15 23:10:21 +00:00
pk
b5f4c3ad5e Check for short hints file (noticed by Chuck Silvers). 1998-03-15 21:24:27 +00:00
mycroft
28ad88290d Remove spurious extra newline. 1998-03-03 00:36:24 +00:00
fvdl
e5bc90f40c Merge with Lite2 + local changes 1998-03-01 02:20:01 +00:00
enami
86053c56a1 Cosmetic changes; fix more indentation (just added/deleted white spaces). 1998-02-28 13:29:03 +00:00
cjs
39926e4051 Send back an error message rather than dumping core when an invalid
username is entered. The latter, while effective, does not appear to
me to be an appropriate response.
1998-02-23 23:10:34 +00:00
jonathan
5e0e8cec39 More table-driven changes for different toolchains:
* new bsd.own.mk variable OBJECT_FMT with values "a.out" or "ELF".
  * use OBJECT_FMT in Makefile tests that depend on toolchain.
  * Add new bsd.own.mk variable NOSHLIB that, if set indicates a given
    port doesnt yet do shared libraries. Set on powerpc.
  * Document new feature-test variables in src/share/mk/bsd.README.
Tested on i386, mips, fakedup Alpha environment.
1998-02-23 10:09:31 +00:00
mycroft
4462053ab3 Fill in missing (default) mmap(2) flags. 1998-02-20 09:27:18 +00:00
perry
ba7b5f16ff add -DPMAP_NEW if PMAP_NEW is on in mk.conf 1998-02-18 03:54:58 +00:00
pk
9084f293a7 Print a warning message if we detect that a "copy symbol" has changed
size in a shared library.  Also, always use our expected size to copy
the item in, on the assumption that doing so generally minimizes the
damage (maybe it's better to just bail out?).
1998-02-17 23:07:33 +00:00
tron
49a4ba96f8 Make login prompt handling smarter, fixed PR bin/3255. 1998-02-13 23:15:16 +00:00
cjs
0fb549738e Disable RNFR command for guest users so that they can't rename (and thus
also overwrite!) files.
1998-02-13 17:15:53 +00:00
mrg
b788ab7665 use sysctl for "kern.boottime" over kvm_read 1998-02-12 05:27:51 +00:00
bad
8a0d3fa9d7 Make this compile with -DUVM. 1998-02-11 17:27:37 +00:00
mrg
279ce528ce add -DUVM to CPPFLAGS if defined(UVM) 1998-02-09 06:25:15 +00:00
lukem
906cb46ddb cons up a makefile to install whatis.db with FILES= 1998-02-09 01:34:57 +00:00
mrg
f1d37094a5 make this work in the -DUVM case. 1998-02-07 12:04:37 +00:00
perry
6982982f8d macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:39:31 +00:00
perry
3ed4e7c6e3 add <unistd.h> to fix compiler warning 1998-02-03 03:24:24 +00:00
perry
860ad7488c change <strings.h> to <string.h> to fix compiler warning 1998-02-03 03:20:11 +00:00
christos
23d3afbb8c - #endif foo -> #endif /* foo */
- #if __STDC__ -> #ifdef __STDC__
- Don't allow expired accounts to login.
1998-02-01 14:10:22 +00:00
mrg
c3d9fda2c3 expand on the checkportcmd option. 1998-01-23 00:56:55 +00:00
lukem
61eb3f4761 * store st_dev of filesystem not quotafile. (inspired by an openbsd commitmsg)
* minor KNF, fix typos, use strchr() not index()
* check return value of malloc() and use strdup() where appropriate
1998-01-21 11:37:16 +00:00
christos
36e588a416 PR/4848: Kimmo Suominen: rpc_rusersd tries to open remote host as display
- change LOG_ERR to LOG_DEBUG because xdisplay access fails most
	  of the time.
	- only try the display code if the ut_host field has a :
1998-01-20 17:39:14 +00:00
perry
77fc921931 get rid of secretmail residue -- suggested in pr-4568 from Carl Shapiro 1998-01-10 00:37:34 +00:00
perry
3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
lukem
69c37cf0b7 fix indenting of a block 1998-01-08 03:30:49 +00:00
perry
2ec6474b31 RCSID Police. 1998-01-06 04:44:59 +00:00
cgd
10cc9f3b70 RCS Id police 1998-01-05 22:00:34 +00:00
lukem
1e03f65c0d clarify /etc/ftpwelcome is shown *before* login 1997-12-31 02:43:54 +00:00
lukem
53f6552a12 set $HOME to "/" for guest or chroot users, pw->pw_dir otherwise.
fixes expansion of `~/...' pathnames.
1997-12-28 04:28:17 +00:00
christos
04691c5e33 Overhaul:
- Use fgetln instead of fgets and keep track of line limits.
	- Use dynamically allocated buffers instead of fixed length ones.
	- Use err/warn
	- Don't re-scan strings needlessly.
	- Handle extensions properly for page names that contain more than
	  one period printing:
		resolv.conf (5) - resolver configuration file
	  instead of:
		resolv.conf (conf.5) - resolver configuration file

This fixes PR/4738: "Coredump in getNAME" as a side effect.

This program is a hack; it depends on the ``standard format'' of a man page
and can get easily confused. At least now it will not core-dump...
1997-12-22 20:02:33 +00:00
mikel
8e4d4f760b edit a bit, and bewail inability to handle compressed manpages 1997-12-04 06:41:42 +00:00
lukem
9f8ad690b4 use 300 seconds (as per login(1)) for initial timeout, rather than 900 secs 1997-11-28 23:42:36 +00:00
lukem
0e2d417ded * initialise curclass.timeout to 900 in main(), so that operations that
want to timeout using this value that are executed before the conf file
  is parsed will work. fixes ``stale ftpd stuck in connection phase''
* in PASV mode, wrap accept() in an alarm timeout. fixes ``stale ftpd because
  of client disappearing in pasv mode (usually browsers)''
* main() doesn't need envp argument
1997-11-28 23:32:30 +00:00
thorpej
8cbf1ce96f Const'ify some things, rename local puts() to xputs(), since it has
a different prototype than the one in <stdio.h>
1997-11-18 21:29:11 +00:00
mrg
02e8f7539b oops! dont clobber the list after building it. (pr#4528 John.P.Darrow@wheaton.edu) 1997-11-18 07:17:09 +00:00
lukem
b181ccb476 log debug stuff using LOG_DEBUG not LOG_INFO 1997-11-16 12:04:21 +00:00
msaitoh
39c2acb633 fix typo 1997-11-15 21:01:36 +00:00
pk
f58457ccca Expand on shared object's `.init' functions a bit, and mention
`/usr/lib/c++rt.o'.
1997-11-13 22:25:23 +00:00
lukem
83955f6abd * change checkportcmd syntax to checkportcmd class [off]' (as per modify')
* display current setting of checkportcmd in STAT
* ensure that curclass.checkportcmd is initialised to 0
* document default setting of checkportcmd in ftpd(8)
* cleanup code a bit, putting code for "checkportcmd" in alphabetical order
1997-11-11 12:42:24 +00:00
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
lukem
66783f1f43 * fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups
1997-04-27 03:21:38 +00:00
mrg
8a6057d663 get rid of supplementary groups. 1997-04-22 10:33:07 +00:00
mrg
cae2d6411c KNF. RCSids. be safe with buffers. 1997-04-21 11:29:26 +00:00
thorpej
85ea5d090f Don't compile this with -O on the PowerPC - cc1 cores. 1997-04-19 05:13:26 +00:00
thorpej
cb232ac37b STRIP -> STRIPFLAG (sign, I guess I forgot to check this one in last night) 1997-04-17 22:17:27 +00:00
christos
d3d1227320 Ld directory reorganization:
- separate out the common files used by rtld ldd ld
	- move machine dependent files into arch
	- move ld in its own directory
	- factor out .PATH and CFLAGS common to all Makefiles
1997-04-16 16:49:28 +00:00
cgd
7631ac43fd make sure that ld.elf_so's path is in the data segment 1997-04-15 07:15:46 +00:00
cgd
aee2cfeaa1 pull in arch-specific Makefile.inc only if it exists 1997-04-10 17:39:20 +00:00
mikel
f78e29b2a9 descend unconditionally for clean and cleandir targets 1997-04-09 06:23:40 +00:00
cjs
a5d6da371a Change the syntax of /etc/ftpusers to have both allow and deny
information in the same file by following the username with `allow'
or `deny'. Also, the user `*' can be used to set the default for
users not listed in the file. This is entirely backward compatable
with old /etc/ftpusers files.
  Also, do the /etc/ftpusers and the valid login shell checks after
the password is verified, rather than before, so as not to give away
whether or not a particular user ID is present on the system.
1997-04-06 07:53:10 +00:00
cjs
ff88177058 Changes to make anonymous uploads more secure. For anonymous users:
* Set umask to 707;
* Disable UMASK, CHMOD, DELE, RMD and MKD commands.
Compile-time options let you change that umask and go back to the
old, insecure way if you like.
1997-03-30 22:53:36 +00:00
cjs
76d4734615 4.4lite2 update. (The one minor bugfix between 4.4lite and 4.4lite2
was already in our sources, thus just the sccsid line is changed.)
1997-03-28 21:55:41 +00:00
christos
d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
christos
0aad9d4378 Makefile cleanups 1997-03-24 22:02:40 +00:00
cgd
fbf6ff628e put in two identifying notes, which new binutils snapshots will turn
into PT_NOTE sections so they can be examined by execve() to figure
out whether this is a native binary, what emulation it's to be run under,
etc.
1997-03-21 05:39:42 +00:00
perry
ab8dd6a331 fix typos per pr-3349 submitted by SAITOH Masanobu 1997-03-18 14:25:29 +00:00
perry
a73d94202d add rmail 1997-03-13 03:00:41 +00:00
perry
e44e016feb add SYMLINKS to keep an symlink from /bin for back uucp compatibility 1997-03-13 02:51:29 +00:00
perry
94a8f86c1d Remove BUGS -- rmail is now not in /bin any more 1997-03-13 02:50:18 +00:00
mouse
80c0d60f84 alternate -> alternative, per PR 2643 1997-03-08 13:47:08 +00:00
cgd
3192bd314f turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks 1997-02-23 20:42:24 +00:00
thorpej
b817db1eaf Fix reporting of disk statistics that's been broken since new disk
framework went in.  From Jarle Greipsland <jarle@runit.sintef.no>, PR #3200.
1997-02-22 01:41:34 +00:00
cgd
1948031343 use 'normal' ELF library lookup rules 1997-02-17 19:32:05 +00:00
cgd
e513f97a8b don't include members of Struct_Obj_Entry conditionally. 1997-02-14 22:30:25 +00:00
cgd
f87e04ac68 that which thou openest, thou shalt close. 1997-02-03 19:45:02 +00:00
explorer
c80b5ae409 Doh! MAXHOSTNAMELEN, not MAXHOSTNAME 1997-01-29 10:30:14 +00:00
explorer
143a02016e Allow local hostname to be longer than 32 characters, and make certain it will
fit in the buffer space provided.  Also, ensure null termination.
1997-01-29 03:21:01 +00:00
mrg
3771fb912e set transflag to 0 in dologout, to prevent a SIGURG taking us back to the main loop. 1997-01-23 05:57:55 +00:00
thorpej
9fef925ff0 RCS ID police. 1997-01-20 21:01:28 +00:00
cjs
2d1967471a PR 3089: fingerd.8 could be misleading.
Patch from Klaus Klein <kleink@layla.inka.de>, with a few minor mods by cjs.
1997-01-08 00:12:44 +00:00
scottr
372fe2ff92 Catch up with const changes to dlopen() and dlsym() prototypes in
<dlfcn.h>.  Tested on i386 and hp300 for crt0.o and ld.so, verified
other references by inspection.
1997-01-03 22:37:58 +00:00
pk
db6c2ee527 <link.h> has moved in with the run-time linker source. 1996-12-23 22:13:03 +00:00
pk
49dc4d2fe7 Deal with weak symbols when looking up in shared libraries. 1996-12-21 21:53:16 +00:00
cgd
0b2b5475a4 nclude dlfcn.h, and pull RLTD_LAZY in from there. Assume that RTLD_NOW is
RLTD_LAZY + 1 (for now), if it's not defined.  RTLD_NOW should be defined
in dlfcn.h, since some code (e.g. X11) wants it and assumes that it has
the value currently used by our RTLD_LAZY.
1996-12-18 22:27:29 +00:00
cgd
7492fca28d telnetd is usually spelled with two "t"s. 1996-12-18 22:11:09 +00:00
thorpej
c2958a4c33 RCS id police. 1996-12-18 05:39:57 +00:00
thorpej
25cc72bed2 Perform the same "don't build telnet stuff if the domestic counterparts
are present in the source tree" kludge that telnet(1) and libtelnet do.
XXX !!
1996-12-18 05:39:13 +00:00
cgd
df19e8aaf2 remove /usr/localelf/lib from default library path 1996-12-17 05:04:10 +00:00
jonathan
20d6ace077 Mipsel changes to ELF ldd/ld.so:
* don't abort() on NetBSD/pmax 1.1 elf binaries;
  * Assume 32-bit elf unless compiling for Alpha;
  * note bugs in ldd's README.
1996-12-17 03:42:44 +00:00
cgd
41fe218b25 First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.).  This runs, but it's
in serious need of cleaning and/or a fair bit of reworking.  See the README
file for more information, and a list of things to do.
1996-12-16 20:37:55 +00:00
cgd
5a09b2d886 on the alpha, if ELF_TOOLCHAIN, add ld.elf_so to the subdirs list 1996-12-16 20:01:34 +00:00
thorpej
d303db9334 Fix newline/carriage return handling during login.
From D'Arcy J.M. Cain <darcy@druid.com>, PR #2969.
1996-12-01 00:44:48 +00:00
gwr
d2ae1a2c2f After the chown(ttyn, 0, 0), call ttyaction(ttyn, "getty", "root") 1996-11-14 19:25:50 +00:00
lukem
9e4b2c6012 - implement -a (verfiy all hostnames) with code taken from rshd(8).
closes [misc/543] and [bin/1295]
- syslog() failures of iruserok(), which should help debugging why
  a .rhosts authentication failed.
- log a successful iruserok() if -L given. idea from rshd(8).
- allow root .rhosts to authenticate, the same way that rshd(8) does.
  the prior behaviour meant that 'rsh foo csh -i' could get a shell
  without a password, but 'rlogin foo' couldn't; very inconsistant.
  closes [bin/1078] and [bin/1239]
1996-11-08 07:47:44 +00:00
ws
79b6fe9805 Add machine dependent code for NetBSD/powerpc 1996-11-03 18:02:42 +00:00
thorpej
7f9ea0f2ed Use ${INSTALL}. 1996-10-18 05:45:01 +00:00
pk
c51687391d Actually set the RTLD_DL flag in dlopen'ed shared objects, per PR#2791. 1996-10-06 19:03:32 +00:00
cgd
d09d0bdcc7 disable use of dk_xfer since it's no longer in the kernel. eventually,
this should be updated to use the new disk statistics structures, but it
would be good if there were an efficient way to get them from the kernel
before that's done.  Also, while here, terminate nlist struct array with
an entry with a NULL name, not the name "".
1996-10-01 04:01:52 +00:00
thorpej
3d93807910 Don't truncate long host names.
From SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>, PR #2676.
1996-09-27 02:30:05 +00:00
thorpej
4d99eaeb74 Don't truncate long hostnames.
From SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>, PR #2676.
1996-09-27 02:15:35 +00:00
thorpej
7d468e4a0c Iff __m68k__, use a `slight hack' to determine the magic of the executable
we're doing a dynamic link for, and change the page size used for offset
and size calculations if necessary.  Allows the same ld.so to be used with
mixed m68k4k and m68k8k executables and libraries.

Thanks a million to Gordon Ross for the help in making this work!
1996-09-10 22:17:51 +00:00
explorer
ec9e28aab1 Block ENV and BASH_ENV from client. From David Holland <dholland@hcs.harvard.edu> 1996-09-07 21:45:52 +00:00
thorpej
176865a07b RCS id police. 1996-08-30 20:15:06 +00:00
thorpej
52110e02f0 RCS id police. 1996-08-30 20:03:54 +00:00
thorpej
78e6c4ebc5 RCS id police. 1996-08-30 17:41:29 +00:00
mark
48d30b1294 Fixed NetBSD tag. 1996-08-21 18:43:29 +00:00
explorer
036dc5d351 fix extra Ta strings in man page. closes pr bin/2685 1996-08-11 04:24:57 +00:00
explorer
e670f342d9 Replace our fingerd with one from OpenBSD, which fixes some security holes
and adds new features.
1996-08-10 22:10:17 +00:00
thorpej
3ff0b1a74c RCS id police. 1996-07-31 20:33:02 +00:00
phil
cc13fe98cb Fix for dynamically linked functions returning structs. PR#2586/Pfaller 1996-07-31 06:22:41 +00:00
rat
c8b88b5da7 Use snprintf(3) when printing into arrays allocated on the stack.
Patch submitted by David Holland <dholland@hcs.HARVARD.EDU>
1996-07-17 18:46:58 +00:00
thorpej
648aed921f RCS id police. 1996-07-03 03:28:09 +00:00
pk
721a11bff8 Use DESTDIR to point at libraries like bsd.prog.mk does (PR#2524). 1996-06-08 22:22:26 +00:00
mrg
d0e431b53a log the IP address if the hostname is > UT_HOSTSIZE, as per telnet. pr#1946 1996-05-21 12:22:31 +00:00
mrg
2a6bfcfdcf call setlogin. from pr#1292 (James Jegers <jimj@miller.cs.uwm.edu>) 1996-05-21 11:06:49 +00:00
mark
060e1bc8f1 Initial commit of arm32 machine dependant code for ld.
Currently only supports static linking.
1996-05-17 21:51:07 +00:00
jtc
01120f4477 Updated to use <util.h>.
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 23:46:50 +00:00
christos
c522811711 Explain why identd is using LOG_DAEMON to log messages instead of LOG_AUTH. 1996-05-13 16:50:43 +00:00
jtc
93153c7796 Changed to use 1900 + tm_year instead of hardcoding "19" as the century.
From PR #2308 by Stephen J. Roznowski <sjr@zombie.ncsc.mil>.
1996-04-08 19:03:11 +00:00
tls
9f01fb5000 apply Thorsten's patch to add gettytab support to telnetd. 1996-03-20 04:25:53 +00:00
ragge
5005458ad0 Removed a couple of "ifdef vax" that caused rstatd not to work. 1996-03-10 15:24:20 +00:00
thorpej
14c6919f1d RCS id cosmetics. 1996-02-28 20:38:08 +00:00
thorpej
7c0f11b167 Move the RCS id to the proper place in the file. 1996-02-28 20:30:33 +00:00
jtk
47dc9102de restore lost local change (be careful with 'long' vs. 'int'
distinctions)
1996-02-24 19:13:37 +00:00
jtk
aefee90c37 RCS Id Police 1996-02-24 01:34:44 +00:00
jtk
42e1b6b73d update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
1996-02-24 01:22:12 +00:00
pk
05105a9150 Define RELOC_INIT_SEGMENT_RELOC for the ns32k (Matthias Pfaller; PR#2103). 1996-02-22 00:19:57 +00:00
cgd
02172229ba add -Dunix to CFLAGS 1996-02-16 02:07:41 +00:00
mycroft
c16462643c Make sure that the user name cannot ever be interpreted as an option to
login(8).  Note: This does *not* fix any security holes.
1996-02-08 06:19:14 +00:00
mycroft
90f0c26840 Make sure that the user name cannot ever be interpreted as an option to
login(8).  Note: This does *not* fix any security holes.
1996-02-08 06:05:31 +00:00
jtc
e25f83b8be Fixed to use ffs instead of ufs; See PR #1984 1996-02-01 02:50:52 +00:00
thorpej
08f474ecc4 Correct the instructions regarding the password database in
~ftp/etc, from Rob Windsor <windsor@ksu.ksu.edu> in PR #544.
1996-01-14 20:55:23 +00:00
pk
55d51fbb95 Relax checking of minor version number in `findhint()'. Also use the
directories from the hints (v.2) file for directory traversing.
This should take care of PR#1146.
1996-01-14 00:35:17 +00:00
pk
ccc1c895ef Deal with v.2 hint files (hint srch dirs not yet used). 1996-01-09 00:02:28 +00:00
pk
d98240030c Define LD_HINTS_VERSION_2:
- no longer hash on minor version number in hints file.
	- add list of ldconfig(8) search directories.
1996-01-09 00:00:11 +00:00
tls
0f47839ca2 fix small documentation bug -- we have no bftp(1). 1996-01-05 04:10:10 +00:00
jtc
0250d4039d Fix userid format to conform to RFC1413. Fix from der Mouse in PR1848. 1996-01-02 22:01:55 +00:00
thorpej
2e1dc487c5 Add -fno-function-cse to PICFLAGS. Without it, Very Bad Things happen
when ld.so is compiled with gcc 2.7.2 on the m68k.  From
Niklas Hallqvist <niklas@appli.se> in PR #1557.  (Thanks, Nik, for reminding
me about this PR...)
1996-01-02 08:54:28 +00:00
pk
4162cf6459 Simplify update of r_addend field in relocation record if `-r' is on.
The old quirky code did strange things.
1995-12-28 18:04:59 +00:00
pk
2bb60e32ec Make dlopen() search for libraries if given a name of the form
`lib<name>.so[.xx[.yy]]' (per Erik M. Theisen; PR#1763; patch from PR
used in simplified form).
1995-12-28 17:57:32 +00:00
thorpej
d6cc013968 Now that we compile the tree with -Werror, remove an explicit #warning
and replace it with an XXX comment.
1995-12-14 21:58:33 +00:00
pk
35c8aad7b3 Flush after diddling text, so we get predictable results on machines
with separate I & D caches.
1995-11-28 19:29:45 +00:00
ragge
6ac54c7a78 Vax support for ld, so we (at least) can link static binaries. 1995-10-19 13:10:17 +00:00
ghudson
75ec1de458 Cleanup, from Mark Eichin. 1995-10-19 12:47:28 +00:00
ghudson
070618219e Filter potentially dangerous environment variables passed from
telnet client.
1995-10-18 05:44:26 +00:00
pk
d04fcadcc2 Fix typo. 1995-10-09 09:24:59 +00:00
pk
9d43c41208 New style RCS IDs. 1995-10-09 00:09:39 +00:00
pk
b74b1d6456 Allow customized trace output, so ldd(1) can be more conveniently used
as a filter.

Rearrange cascading stuff: remove two-level limit.
1995-10-08 23:43:28 +00:00
mycroft
d31086db17 Update from kernel source. 1995-10-05 08:51:31 +00:00
mycroft
4a508a1252 Change to use SET(), CLR(), and ISSET() macros. Copy current sgtty->termios
conversion code from kernel.
1995-10-05 07:16:25 +00:00
mycroft
a38b5c448f Fix some other problems created during the termios switch. 1995-10-05 00:54:45 +00:00
mycroft
2da76ff341 Simulate the old newline behaviour better, and make sure OPOST
is set if needed.
1995-10-05 00:40:33 +00:00
pk
b19a7d87e2 Pass on return value. 1995-09-23 22:48:18 +00:00
pk
d4fe561742 Interface version 4:
implement dlexit() (per Doug Rabson)
	get actual rtld path from crt0
	pass ld_entry back to crt0 in a better place
1995-09-23 22:46:24 +00:00
pk
fa6e06725c Define `dlexit()' in crt<=>rtld interface (active in v4). 1995-09-23 22:26:15 +00:00
jtc
d943cdadce Sync with 4.4lite2 1995-09-07 06:42:58 +00:00
pk
1a9159c7ba Check for zero sized BSS to avoid a big no-op syscall (per Mike Hibler). 1995-08-31 22:07:25 +00:00
pk
f6797ed4f1 Install the manual page. 1995-08-25 10:08:45 +00:00
cgd
6c5f148828 log open failure every 10th try (that was the old behaviour) UNLESS
the error is ENXIO and it's already been logged.  (this allows people
to leave getty's running on nonexistent devices without filling their
syslog.  while it's arguable that that might not be a good idea, i've
found it to be _very_ useful, because it allows me to rdist /etc/ttys.)
1995-08-13 04:08:27 +00:00
pk
72acb4fe30 Handle object code with the "large" model PIC (eg. gcc's `-fPIC' option). 1995-08-04 21:32:15 +00:00
pk
4a5c9a20e5 Use `xdrproc_t' to declare xdr_{args,result}. (takes care of PR#1182). 1995-07-09 00:30:11 +00:00
pk
b542137ece Oops, previous needs <limits.h>
Also, previous addresses PR#1183.
1995-07-08 23:57:06 +00:00
pk
39565cfe93 Call kvm_openfiles() with suitable arguments.
(Note, the error reporting mechanism in here is quite braindead)
1995-07-08 23:53:46 +00:00
pk
f42537952b man page for the run-time linker 1995-06-30 12:23:10 +00:00
pk
fed935eb9a Conform to rpcgen generated prototypes. 1995-06-24 15:57:18 +00:00
pk
5bf5f9214d Make declarations confirm to rpcgen generated prototypes. 1995-06-24 15:47:49 +00:00
pk
45359beaf4 Initialise after malloc (fixes PR#1149).
Also, correct comparison when looking in `prefered' paths.
1995-06-20 23:07:03 +00:00
jtc
1847eaed9f sys/termios.h -> termios.h 1995-06-19 22:47:37 +00:00
cgd
fe84ea21f6 update for new network queues 1995-06-19 21:59:31 +00:00
cgd
2db81cafc5 update for new networking queue structures 1995-06-18 22:44:10 +00:00
cgd
788733b7a9 typeof(timeval.tv_sec) != time_t 1995-06-07 17:14:21 +00:00
pk
d680ed6b95 #include <dlfcn.h> 1995-06-05 00:08:38 +00:00
pk
878392000d Put dlopen() et.al. declarations in separate header file for compatibility. 1995-06-05 00:08:07 +00:00
pk
fdd7092874 Cache two more environment variable values. 1995-06-04 23:21:35 +00:00
pk
fe9497fd8c Revive library search paths. 1995-06-04 21:57:18 +00:00
pk
ad760ce3d6 Implement compiled-in library search paths: any `-L' argument encountered
while `dynamic link-mode' is on, is recorded in the executable. The
run-time linker will search these paths after $LD_LIBRARY_PATH but
before the default set and those currently in the hints file.
The feature is disabled whenever for set[ug]id programs.
1995-06-04 21:56:22 +00:00
jtc
ad6a2b10b2 The tftpd daemon must be invoked as root in order for the chroot()
call to succeed, and must give up those privledges as soon as the new
root has been aquired.  Use setgid() & setuid() to explicitly set the
user and group IDs to non- priveleged values.

This change now requires tftpd to be executed by root.  I haven't
studied the security implications of making it setuid root, so
inetd.conf needs to be changed to start it as root.
1995-06-04 20:48:22 +00:00
mycroft
e4cc49cc0d Fill in sin_len. 1995-06-03 22:47:20 +00:00
mycroft
5860921eda Fill in sin_len. 1995-06-03 22:37:19 +00:00
phil
46466fb2d7 Correct copyright. 1995-05-29 18:11:35 +00:00
mycroft
cc8066939d Use inet_aton(), not inet_addr(). 1995-05-21 00:39:11 +00:00
jtc
9ae90685f2 Winning Strategies has placed this code in the public domain. 1995-05-11 23:03:44 +00:00
briggs
ad2b81e4f0 jbsr takes one argument, not two. Apparently the assembler quietly
ignores the second...
Pointed out by uhenric@mcl.ucsb.edu (Henric Jungheim).
1995-05-07 13:22:12 +00:00
mycroft
78cb5bbe77 Use POSIX tty semantics. 1995-05-02 02:05:47 +00:00
jtc
2d577aafd2 Install manpage as foo(8) as well as rpc.foo(8), a convenient shorthand.
Also make sure that foo and rpc.foo are mentioned in the NAME section.
1995-04-12 00:47:27 +00:00
jtc
0e1df05653 #include <sys/signal.h> -> <signal.h> 1995-04-12 00:41:40 +00:00
cgd
8954551479 typo. 1995-04-11 02:58:40 +00:00
cgd
6a9917621c clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
1995-04-11 02:44:45 +00:00