Commit Graph

1064 Commits

Author SHA1 Message Date
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
pk 28dba22b40 Fix bogosities in cascade stuff. 1995-04-01 20:56:55 +00:00
jtc ae0b9c2010 KERNEL -> _KERNEL 1995-03-28 17:18:59 +00:00
mycroft eb82f2b314 __timersub --> timersub 1995-03-26 23:36:44 +00:00
mycroft dad7a18390 Use IPTOS_THROUGHPUT for passive mode data connection. 1995-03-22 16:55:35 +00:00
mycroft ebeae88da2 Use POSIX signals. 1995-03-21 21:47:04 +00:00
cgd 930fffb85d clean up id tags 1995-03-21 07:08:15 +00:00
brezak 4036a63b78 Fill in ttyname for cred file uniquifier under KERBEROS (From Michael Graff) 1995-03-08 19:50:54 +00:00
pk b6340cabe2 Burn LD_RUN_PATH; I didn't read the SVR5 man-pages carefully enough. 1995-03-06 22:59:10 +00:00
pk 64edf8f86f Code from Matthew Green to do DL cascading "in the first degree".
Two `fprintf(stderr, ..)' => `warnx(..)'.
1995-03-06 20:51:24 +00:00
cgd 3a92da2d89 properly init group list before running the job. 1995-03-02 22:06:06 +00:00
mycroft 4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
jtc 490ec0010d Change mention of /etc/passwd to /etc/pwd.db, as reported by PR #556. 1995-02-17 09:19:45 +00:00
christos 770ca3a8d6 Fix:
Save hostname in a permanent buffer, otherwise ruserok()
can trash it if it calls gethostbyname() or inet_ntoa().
Repeat by:
Add entries in .rhosts and login from a machine that does
not have an entry there. Notice that the error message
in syslog contains the last hostname in .rhosts and not
the original remote hostname.
1995-01-20 18:48:50 +00:00
mycroft ae92c26c4c Several consistency nits, and fix a byte order problem in md_swapout_reloc(). 1995-01-17 06:44:38 +00:00
mycroft 2c64d3be89 Several consistency nits, and don't define the get_*() macros twice. 1995-01-17 06:41:43 +00:00
mycroft 8f6e962b3e Die quietly when we time out. 1995-01-13 21:28:00 +00:00
mycroft 5f5a0a3e8d Oops. 1995-01-13 21:07:00 +00:00
mycroft f8bc7fb821 Only time out if called from inetd. Other cleanup. 1995-01-13 20:53:08 +00:00
mycroft 516fa506ed Make sure we reply to the request, so the client will stop sending. 1995-01-13 20:46:33 +00:00
mycroft b481f03023 General cleanup. 1995-01-13 19:59:13 +00:00
mycroft 48bf1a7fe0 Fix error messages. 1995-01-13 19:37:52 +00:00
mycroft 8ee607a670 Need syslog.h. 1995-01-13 19:18:08 +00:00
mycroft 93335c3b0e Free argument list (for !from_inetd case). General cleanup. 1995-01-13 19:16:45 +00:00
mycroft e3cbb4b410 Fix this for the case of not running from inetd. Send error messages to a
useful place.  General cleanup.
1995-01-13 18:51:39 +00:00
mycroft 002aa598e1 Correct calling sequence of getsockname(2). 1995-01-13 06:14:28 +00:00
pk a9384f4676 Define `MAN'. 1994-12-25 12:32:12 +00:00
pk da34da6096 Put a reserved field into use (weak symbol support). 1994-12-23 20:16:59 +00:00
cgd a59d6b2cae stdlib.h for protos 1994-12-23 15:59:21 +00:00
cgd b54e75897f be a bit more careful with types, casts, and and function declarations. 1994-12-23 14:29:31 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
cgd b32916a5d5 new way of specifying man pages. 1994-12-22 09:23:05 +00:00
glass e34b72b0cb vis(3)ify remote user name. Fixes bug 589. Fix basically as submitted by matthew green 1994-12-21 20:03:48 +00:00
pk e46ed32748 Bummer! Undo mmap() changes in rev. 1.26; they royally screw up the
kernel's pmap address preference mechanism.
1994-12-19 12:21:21 +00:00
pk e2025017e0 Handle "/dev/zero" stuff more globally. 1994-12-18 16:05:49 +00:00
pk b8937d605d Re-arrange mmap() calls, per Charles' suggestion. 1994-12-18 15:38:55 +00:00
pk 524e00b29b Ensure contiguous chunks for all of an object's address space (text+data+bss). 1994-12-07 20:30:53 +00:00
mycroft 9ea7c211d9 Fix some other broken comments. 1994-12-04 08:26:22 +00:00
mycroft ffadc8821a Remove silly comment that was causing `make depend' to barf. 1994-12-04 07:42:44 +00:00
pk 7df5d3ecf2 Another md macro to initialize a home-made struct reloc needed
for N_SET* type relocations in shared objects.
1994-11-30 18:24:56 +00:00
phil 0a13ae3ba2 patches from Matthias
new RCS id format
1994-11-30 06:20:42 +00:00
jtc 3a08d567f4 Misc manpages fixes (PR #551) 1994-11-03 15:37:46 +00:00
mycroft 15cea8b764 Don't close the hints file while it's mapped, but unmap and close it after
loading.
1994-10-26 20:21:42 +00:00
mycroft e23e2b1219 Remove two unused functions. 1994-10-26 20:03:31 +00:00
mycroft c1a45e7763 Clean this up a bit, and use the trap gate to enter the kernel. 1994-10-26 19:41:13 +00:00
cgd 4d2cbfce0a new RCS ID format. 1994-10-26 00:55:40 +00:00
mycroft 206b57f8c9 Minor tweak to aid cross-compiling. 1994-09-24 01:02:51 +00:00
mycroft 4fb5f48ce0 Remove old comment about converting to termios. 1994-09-24 00:56:05 +00:00
mycroft 8f58e94ed3 Import original 4.4-Lite version. 1994-09-24 00:41:59 +00:00
mycroft 667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
jtc a5f771b355 Fix PR #491, what could have been a big security hole 1994-09-20 23:09:14 +00:00
deraadt 43965575ed NBPG --> getpagesize() 1994-09-19 16:58:18 +00:00
mycroft 72e34bc0d4 Shrink ld.so by 12k. 1994-09-19 04:49:02 +00:00
mycroft 7e59c0d1fc Fix typo in date format. 1994-09-18 00:14:39 +00:00
mycroft 6386e4b6a5 Document the % escapes I added, and clean up the description of %h a bit. 1994-09-16 22:02:34 +00:00
pk 6b619f18ed Use tcflush(). 1994-09-05 09:09:43 +00:00
pk 437ee32a52 Set control flags properly while in read mode.
Supply process ID when syslogging.
1994-09-05 08:52:49 +00:00
mycroft 2f65aa5da5 Fix pad insertion for termios. 1994-08-24 16:42:23 +00:00
mycroft 4695fa8444 Use _POSIX_VDISABLE, not \377. 1994-08-24 16:39:24 +00:00
mycroft d72774f29d Use cfset[io]speed() to set termios speeds, per POSIX. 1994-08-24 07:54:50 +00:00
pk 41671de8e6 Define Global Offset Table range. 1994-08-21 15:15:43 +00:00
pk 4bba3e65c6 The man page says to disable input parity checking if `ap' is on. 1994-08-17 20:27:59 +00:00
pk fe82241620 Cleanup import, merge local changes. 1994-08-17 20:10:27 +00:00
pk 1ea392708b Import 4.4-Lite version. 1994-08-17 19:50:13 +00:00
phil 7297407d7b fix from Matthias Pfaller. 1994-08-16 23:18:20 +00:00
pk 462fa7ef48 Handle parity stuff more sensibly; `ep' and `op' take precedence over `ap'.
Update tty_compat().
1994-08-15 15:46:44 +00:00
pk 233cc208f0 Re-add `LD_WARN_NON_PURE_CODE' that went missing. 1994-08-12 08:11:16 +00:00
pk 867591e7cb Relax minor version number checking somewhat; issue warning if minor
version is less than expected.
1994-08-07 10:34:40 +00:00
jtc 9c98b1cffd Sync with 4.4 lite 1994-08-06 23:26:31 +00:00
jtc d7b008b8f9 Change format specification from %ld to %qd, as off_t's are now quads. 1994-08-05 23:41:15 +00:00
jtc c3a4cec791 Include proper header files to bring prototypes into scope 1994-08-05 01:01:16 +00:00
deraadt 1a69335ad4 do not need -I/sys 1994-08-03 20:46:47 +00:00
pk 9e0ddbbe6f Remove some unnecessary code. 1994-08-03 15:57:58 +00:00
chopps b6d669a07c binder_entry() must save all scratch registers to make the process
of binding functions completely transparent.
1994-08-03 15:57:54 +00:00
brezak ad6e6fe7ab As long as KERBEROS is here at least let it compile cleanly... 1994-07-25 18:48:40 +00:00
mycroft 02b0255ae0 Fix uninitialized variable. 1994-07-11 21:51:58 +00:00
mycroft e9ea848c35 Add lfs_cleanerd. 1994-07-07 19:17:25 +00:00
cgd 775b690718 fix typo; from phil 1994-07-04 19:46:37 +00:00
pk 1cf6a27eef error => warnx 1994-06-29 11:15:34 +00:00
mycroft ec9f6d82c2 Clean up deleted files. 1994-06-29 01:49:53 +00:00
deraadt d6743f02e5 4.4-lite, plus our local changes 1994-06-29 01:49:37 +00:00
mycroft 2d9b0d8e36 Clean up deleted files. 1994-06-27 21:48:07 +00:00
gwr ab0534a763 Remove: bootpd 1994-06-27 21:40:42 +00:00
pk 009be1653a strdup() doesn't grok NULL pointers 1994-06-24 13:31:34 +00:00
deraadt bbc3d2c750 horrible spacing 1994-06-24 08:17:42 +00:00
deraadt a79ae34d65 compile rpc.rquotad & rpc.sprayd 1994-06-24 07:45:03 +00:00
deraadt 8b6e0e0481 from bouyer@ensta.fr; cleaned by me 1994-06-24 07:42:26 +00:00
deraadt 43aa830eba from <christos@deshaw.com> 1994-06-23 08:11:33 +00:00
chopps 6a0e2061ce some changes for new style cachectl. remains compat for <= 030 1994-06-13 05:28:39 +00:00
pk a43fd7b3a2 Conversion to err()/warn() for error reports. 1994-06-10 15:16:32 +00:00
pk a6bf4f8176 Conversion to err()/warn() for error reports.
Minor bug fixes:
	a case of free()ing in the wrong order. (from Rick Murphey).
	processing alias symbol twice (sometimes).
Some miscellaneous cleanup.
1994-06-10 15:16:04 +00:00
mycroft 2cf76ce530 From 4.4-Lite, with local changes. 1994-06-08 18:42:09 +00:00
cgd ac14db2c01 kill kerberos and stream encryption support, so it's exportable. 1994-06-05 15:35:54 +00:00
cgd 2efe726b86 clean up import, RCS ids 1994-06-05 15:33:20 +00:00
cgd 7972ccad6f update to match 4.4-Lite 1994-06-05 14:31:15 +00:00
cgd b1e3471d49 version number update 1994-06-05 14:27:12 +00:00
cgd 2642138ed1 kill kerberos and stream encryption support, so it's exportable. 1994-06-05 13:57:51 +00:00
cgd 13514eadce clean up import, RCS ids 1994-06-05 13:49:01 +00:00
pk eb9d2b8c28 another case of overloading hostent's storage. 1994-06-02 19:16:37 +00:00
mycroft fadca2ce79 Clean up deleted files. 1994-05-31 18:05:24 +00:00
gwr 8e9adf9acf Make things in the right places. 1994-05-30 20:18:34 +00:00
mycroft 4b4171b504 Clean up deleted files. 1994-05-30 20:09:03 +00:00
gwr 0d6e953d74 Make things in the right places. 1994-05-30 20:08:05 +00:00
cgd b451f58608 add BINDIR?='s so that it'll install 1994-05-30 05:01:43 +00:00
gwr 71905435a4 New makefiles using subdirectories (thanks to Theo). 1994-05-27 22:05:44 +00:00
gwr 7bd54bd9bc New makefiles using subdirectories (thanks to Theo). 1994-05-27 21:44:39 +00:00
gwr c7b51e6891 Work around missing SIOCSARP (just run arp for now). 1994-05-27 21:30:17 +00:00
pk 7cb090d9a7 Use new kvm interface (fixes bug 253)
Also, use the crummy protocol's idea of CPU times.
1994-05-25 19:40:40 +00:00
pk ca0065ab75 Another move to .data to please gdb. 1994-05-25 10:14:37 +00:00
mycroft 24e02139fb Clean up deleted files. 1994-05-24 15:21:00 +00:00
gwr 438d67fe4e Wholesale update to bootp-2.3.7 release. 1994-05-24 15:19:56 +00:00
pk 4369371ef0 Enable dl*() prototypes. 1994-05-24 10:47:48 +00:00
pk f28b14e8b3 Force some string constants into the data segment (for core-dump reading).
Rename internal dl_*() functions.
Do run-time symbol alias processing.
1994-05-24 10:44:06 +00:00
deraadt 1a3b9af761 add skey support 1994-05-24 06:52:17 +00:00
pk f4abfb1f2f Add underscore to _check_rhosts_file 1994-05-19 22:54:19 +00:00
cgd 00b7161e8e more #undefs to get it to compile! perverted 1994-05-14 22:12:06 +00:00
cgd c3174f824f update for sysctl/new kvm 1994-05-14 19:39:03 +00:00
deraadt c77d5c6777 fix from <arndt@uniko.uni-koblenz.de> 1994-05-05 10:06:32 +00:00
cgd e3926c6721 fix formatting bogon 1994-04-29 21:48:49 +00:00
pk 7243f6f6fb Towards termios. 1994-04-28 22:12:28 +00:00
pk b9b9f6e62c Mark a few capabilities as unsupported.
Document some new ones.
1994-04-28 22:11:14 +00:00
pk 1da83c2c95 Correct format of `np' item. 1994-04-21 07:52:14 +00:00
pk 5ee9535a36 Another off_t glitch. 1994-04-19 13:28:29 +00:00
glass 6cc6cf15ee move bootpd from othersrc to libexec. add bootptab file 1994-04-18 05:15:36 +00:00
cgd 41a949b1b4 renamed 'md' to 'mb' 1994-04-16 05:15:51 +00:00
cgd 353d8f840d quick cut at adding 'md' for MDMBUF 1994-04-16 03:45:24 +00:00
cgd 6fb7527ea2 sum -> cnt 1994-04-15 03:21:24 +00:00
cgd d7e56d367a use setproctitle 1994-04-14 03:15:37 +00:00
cgd e918c8c3f2 document np 1994-04-12 03:55:47 +00:00
pk f8af116033 dlopen() should make a copy of argument (Thomas Eberhardt). 1994-04-07 19:46:30 +00:00
pk a426b2b937 ns32k support by Matthias Pfaller. 1994-04-07 19:44:46 +00:00
pk afc89926d8 Use machine architecture when examining object files for compatibility. 1994-04-07 19:43:37 +00:00
cgd 8940935dd1 Jarle.F.Greipsland@idt.unit.no's changes to allow for password-protected
chrooted ftp logins.
1994-04-06 20:49:52 +00:00
cgd c889ba6f68 kill bad cast 1994-04-01 03:51:44 +00:00
cgd 86be4d6208 long cast 1994-04-01 03:29:58 +00:00
cgd 2ab4a0ae5c some changes to make Kerberos a bit easier to use. from
Michael Graff <explorer@vorpal.com>, with some work by myself...
1994-03-30 02:49:15 +00:00
cgd 95d6a185be no more MAP_FILE 1994-03-28 02:07:04 +00:00
cgd 9c6214e2d9 cut-and-paste-o's, pointed out by Andras Olah <olah@cs.utwente.nl> 1994-03-23 03:36:03 +00:00
cgd 2c35fc2827 another flag 1994-03-21 00:57:43 +00:00
cgd aebbb61b8f support for compressed and gzipped man pages. more or less from
Luke Mewburn <lm@rmit.edu.au>
1994-03-19 08:09:16 +00:00
cgd 9d26d3af36 get section right; from Luke Mewburn <lm@rmit.edu.au> 1994-03-19 08:04:16 +00:00
pk 0816b2a18c TIOCFLUSH requires argument 1994-03-17 13:55:48 +00:00
cgd d169b3a8b3 add some new flags for /etc/ttys 1994-03-12 06:55:42 +00:00
mycroft 8c67085e11 Clean up deleted files. 1994-03-09 05:00:02 +00:00
cgd 03fe423b30 fix bin/140: use getcap(3) routines 1994-03-09 04:59:55 +00:00
chopps 8e6af40327 oops 1994-03-08 23:50:14 +00:00
chopps 3fcebc3096 flush instruction cache. 1994-03-08 06:52:33 +00:00
mycroft 6ec372921f Clean up deleted files. 1994-03-08 06:40:08 +00:00
mycroft 7aaedc30b0 We don't need or want set_ttydefaults(). 1994-03-08 06:40:04 +00:00
cgd 9fd1fef05a From Christos Zoulas <christos@deshaw.com>:
As promised. the problem was that tftpd would core dump if given no arguments.
I fixed it to use getopt. I also changed 0 to fd, because I had added some
debugging code that allowed me to start it from the command line.
1994-03-01 08:27:44 +00:00
cgd 600f45bda9 add uname % format stuff back in 1994-02-25 03:26:26 +00:00
cgd 290a2c4f88 new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
1994-02-25 03:20:39 +00:00
pk 476ec5747d Don't use someone else's name when logging 1994-02-22 15:37:19 +00:00
cgd 8607385ae2 didn't apply that patch verbatim, and needless to say, i biffed it. 1994-02-18 18:36:54 +00:00
cgd 90d79a8c10 fix from vdlinden@fwi.uva.nl (Frank van der Linden) to prevent null deref 1994-02-18 18:34:24 +00:00
jtc fe0c74f41f Look for X11 in various likely places.
From Thomas Eberhardt, who adapted it from similar code in gxditview.
1994-02-16 01:06:26 +00:00
pk 1bb4f06e2a Libraries which are in the hints file but not in one's LD_LIBRARY_PATH (if
set) were not found.
1994-02-15 22:51:23 +00:00
pk 9b345fd6e5 Define an adjustment for {TEXT,DAT}_ADDRs.
Hide some things from rtld with #ifdef RTLD.
1994-02-10 21:21:27 +00:00
briggs 9476a25141 Initialize return value from deliver() to zero. I guess the 386 crowd
has been fortunate.  It's odd to see mail delivered and get a bounce
back, though, which is what was happening--spent a while thinking it
was sendmail.
1994-02-10 05:33:21 +00:00
cgd 8310908256 actually do the install when done 1994-02-07 05:11:24 +00:00
cgd 5bdeccb8d4 add a use for -v, for happy paranoid sysadmins 1994-02-04 23:42:16 +00:00
cgd 1efbe5ebae previous change was somewhat nonsensical 1994-02-04 23:20:04 +00:00
cgd 9caa83cfc6 clean up, rcs ids, etc. 1994-02-04 23:17:50 +00:00
cgd 161220d640 add identd 1994-02-04 22:14:09 +00:00
cgd 642afa1850 import of pidentd 2.1.2, by Peter Eriksson <pen@lysator.liu.se>. needs clennup 1994-02-04 21:41:32 +00:00
cgd b65d6c0390 better fix for security problems, and minor cleanup 1994-02-01 00:32:22 +00:00
briggs 476d26c797 Change from bicknell@csugrad.cs.vt.edu and ceharris@csugrad.cs.vt.edu.
This closes an apparent security problem on systems where users have
write access to the mail spool.  Since root actually runs comsat, a
user could link their mail file to a system file that they normally
could not access, and use comsat to view said file.  This fix simply
makes sure that the mail file is a REGular file.
1994-01-30 18:32:39 +00:00
jtc fc1d8f3bac Fix spelling error in Copyright notice 1994-01-29 01:54:01 +00:00
jtc 42f840d29d Fix spelling error in Copyright notice 1994-01-29 01:43:03 +00:00
pk bc9bb1a343 Like others, allow for SunOS .o files. 1994-01-28 21:02:21 +00:00
pk d27581fb4b Use somewhat customized version of malloc, in stead of relying on a
crummy sbrk() backend; proper aligment must be guaranteed on all archs.
Drafting dlopen, dlsym, et.al.
1994-01-28 21:01:20 +00:00
pk 90cfba21cb Use `.type' directives generated by gcc.
Numerous internal changes & bug fixes.
NOTE: must re-compile & re-link shared libraries before used to link programs.
1994-01-28 20:56:09 +00:00
pk ad127b0a0a Redone from scratch, but maintain SunOS compatibility. 1994-01-28 20:26:52 +00:00
cgd ecd53521f1 no longer need lib hackery 1994-01-28 05:13:28 +00:00
cgd c73f928505 don't need libs hackery any longer 1994-01-28 05:11:47 +00:00
cgd 1ac7c7adaa don't need -lutil 1994-01-28 00:31:32 +00:00
cgd 9043c5a8de hack to make getloadavg() link properly 1994-01-28 00:30:52 +00:00
cgd bca5d4ac26 hack to make getloadavg() link properly 1994-01-28 00:26:35 +00:00
mycroft 24249baa85 Clean up deleted files. 1994-01-24 05:59:40 +00:00
cgd a8078f319e ELVIS IS DEAD, DAMNIT! 1994-01-24 05:59:28 +00:00
cgd 765e3e7b93 there will be no crond (or cron) tomorrow! 1994-01-15 19:47:51 +00:00
mycroft 3ce42c6893 Clean up deleted files. 1994-01-12 19:26:40 +00:00
pk 954ef13a90 Fill in gdb hook. 1994-01-12 19:19:09 +00:00
jtc 2a22045ae0 Vixie Cron 3.0-prerelease, patch 11 1994-01-12 18:35:59 +00:00
jtc e827862b77 Vixie Cron 3.0-prerelease, patch 11 1994-01-12 18:35:45 +00:00
jtc 59f16ac068 Vixie Cron 3.0-prerelease, patch 11 1994-01-12 18:34:24 +00:00
jtc e59e4eb1ce Vixie Cron 3.0-prerelease, patch 10 1994-01-11 19:10:45 +00:00
mycroft 45fe1558b2 Add -s flag, per Roland McGrath, with changes and a manual page addition by me. 1994-01-10 16:29:46 +00:00
mycroft 58e3d058ae Clean up deleted files. 1994-01-05 21:40:25 +00:00
jtc e67478fe79 Rename crond to cron 1994-01-05 21:37:12 +00:00
jtc 5f2a029904 Remove -DCRONDIR, macro is set correctly in pathnames.h. 1994-01-05 21:10:29 +00:00
jtc ba46c17534 Converted Makefile to use BSD make. 1994-01-05 20:57:27 +00:00
mycroft 22183f4e79 Clean up deleted files. 1994-01-05 20:52:52 +00:00
jtc 644d4f8787 Vixie Cron 3.0-prerelease, patch 9 1994-01-05 20:40:12 +00:00
cgd 2b82a53661 add '-L' flag, for those of us who are *really* paranoid...
Logs all rsh commands (including failed ones).
1993-12-23 09:05:45 +00:00
cgd a8648761af add makewhatis 1993-12-21 03:31:19 +00:00
cgd 103f2ee5d5 moved here from old location in src/usr.bin/man 1993-12-21 03:28:00 +00:00
pk 0cc050772f Hooks for for shared C++ objects with static contructors/destructors. 1993-12-20 22:44:35 +00:00
deraadt 7f9699a3e6 rarpd has moved 1993-12-16 20:34:57 +00:00
mycroft 757153c5f6 Clean up deleted files. 1993-12-16 05:41:49 +00:00
jtc e0a7b28c1e Use <dirent.h> instead of <sys/dir.h>. 1993-12-15 16:58:01 +00:00
mycroft a09abb4d2b Minor cleanup. 1993-12-10 05:10:22 +00:00
mycroft 8363f8736d Use MACHINE_ARCH. 1993-12-08 11:47:17 +00:00
pk fb781361ed Small nits. 1993-12-08 10:28:56 +00:00
pk a711901191 Parcelled out the heap allocator into separate file.
Changes prototype for findshlib() (corrected library search order for ld).
1993-12-08 10:28:05 +00:00
pk fa099af1f6 Many internal changes, most notably in the symbol counting stuff.
`ld -r -x'  now supported on all object files.
Support for long archive member names (AR_EFMT1 format),
	thanks to Bill Sommerfeld/Mark Eichin
Do the right(?) thing with symbol aliases (N_INDR) for POSIX lover, especially
when equiping shared libraries with these (this was *not* fun).
Handle silly archives (.sa) for people who needs them; turn on by `-Bsilly'.
1993-12-08 10:13:47 +00:00
mycroft 570159be38 Eliminate a compiler warning. 1993-12-07 09:09:12 +00:00
mycroft f53acb2991 Eliminate two compiler warnings. 1993-12-07 08:59:27 +00:00
mycroft e331ce34d0 #include ctype.h, since we use isdigit(). 1993-12-07 03:04:28 +00:00
cgd 0e5a19d667 oops; i screwed up that last... 1993-12-06 23:57:11 +00:00
cgd 00e991f068 from thomas@mathematik.uni-Bremen.de (in gnats bug bin/36):
crond doesn't log executed commands since the conditional around
	the log_it call is only based on the definition of LOG_FILE instead
	of LOG_FILE or SYSLOG.  Also, if there is neither LOG_FILE nor SYSLOG
	defined calls to log_it are still issued but there is no log_it
	function defined (This doesn't affect us, since SYSLOG is defined
	in config.h).
1993-12-06 03:35:56 +00:00
cgd 84c102ad15 make it owned by root so cron doesn't whine... 1993-12-05 12:26:10 +00:00
cgd 940867e342 add at, by Thomas Koenig, ig25@rz.uni-karlsruhe.de 1993-12-05 11:34:40 +00:00
cgd 1bd5116d82 MACHINE_ARCH support 1993-12-05 00:55:26 +00:00
pk 2f5a8d0d1c Make it compile on other-than-i386 BSD boxes too. 1993-12-02 15:54:34 +00:00
jtc 3802354116 Use ".At v7" macro instead of spelling out "Version 7 AT&T UNIX". 1993-11-30 00:10:17 +00:00
paulus 5b59119fbb Machine-dependent part of ld for the m68k architecture,
allowing ld to support shared libraries on m68k-based machines.
1993-11-25 00:57:35 +00:00
cgd de4dd71dfa do the right thing with ifdef, and warn about i386 console hack 1993-11-23 04:40:28 +00:00
mycroft 6da8256254 Clean up deleted files. 1993-11-23 04:32:13 +00:00
cgd c948d34c95 squish the bugfiler, now that we're using gnats. the bugfiler
wasn't really very useful, anyway...
1993-11-23 04:32:01 +00:00
mycroft e9e6f64ef6 Add /usr/X386/lib to the standard list of library paths. 1993-11-21 21:01:08 +00:00
mycroft 3b52558c53 Clean up deleted files. 1993-11-21 20:19:17 +00:00
brezak bb3120424b Build rnusers XDR's into librpcsvc and use them. 1993-11-21 20:19:15 +00:00
brezak 4b660341e6 Remove support for vers 1 interface. Add vers 3 interface support. Fix ver 2 support to interoperate with Sun's. 1993-11-21 18:56:33 +00:00
pk 4a64975120 Make `-Z' actually do something different again (old style ZMAGICs). 1993-11-14 16:51:17 +00:00
pk c6cb826f23 Call breakpoint `BPT' in stead of `TRAP'. 1993-11-13 11:20:17 +00:00
pk a2d3040ffb Added function `md_set_breakpoint()'.
Define for TRAP. NOTE: THIS IS DEFINED AS `ta 1'!. This may need to be
changed for NetBSD.
1993-11-10 21:46:03 +00:00
pk 47aca600bd Added function `md_set_breakpoint()'. 1993-11-10 21:40:50 +00:00
pk 2d6241585d Do the debugger hooks.
Revised algorithm for finding symbols using `nz_other' (auxialiary type info).
1993-11-10 21:37:39 +00:00
pk 168c91b813 Use strsep() in stead of strtok() and restore colons in eg. env. vars. 1993-11-08 13:20:39 +00:00
pk 9446d24503 md_init_header: our exec header differs from SunOS's. 1993-11-06 19:15:31 +00:00
pk 6e2bed1cac Print symbol name in "undefined" error msg. 1993-11-03 21:35:54 +00:00
mycroft 25d572fb12 This warning is fucking annoying, and ld already told us about it when we
linked the executable.  Make it #ifdef DEBUG.
1993-11-03 04:58:57 +00:00
pk abbf20b6e1 use SHAREABLE in init_header() in stead of `entry_symbol'. 1993-10-27 00:56:17 +00:00
pk b817714018 -Bshareable added to CFLAGS. 1993-10-27 00:55:24 +00:00
pk 762354917d use SHAREABLE in init_header() in stead of `entry_symbol'. 1993-10-27 00:54:58 +00:00
pk 8ea3d67031 Search for top-of-stack blew up if program had no environment strings. 1993-10-26 19:30:13 +00:00
pk ecd08c7591 Make that #ifdef NetBSD, not __NetBSD__ 1993-10-24 00:52:40 +00:00
pk f385d97564 Use MID_MACHINE.
#ifdef NetBSD in stead of #ifdef sun
1993-10-24 00:48:20 +00:00
pk 0d1097aaf9 Use MID_MACHINE in stead of MID_I386 1993-10-24 00:47:05 +00:00
pk a0aae738e7 Changed prototype and internals of std_search_dir(). 1993-10-23 00:34:22 +00:00
pk 843df2403a Support for `ld.so.hints'.
Handle set[ug]id programs.
No longer use the `lm_lob' field to access parent objects, add private
link map `parent' field in stead (SUN_COMPAT weirdness).
1993-10-22 21:18:58 +00:00
pk 8846fa47e1 Some definitions for the `ld.so.hints' file. 1993-10-22 21:04:19 +00:00
pk 69af39d0a8 No rounding of bss size to page boundary in ZMAGIC a.out's, the kernel
chokes on it.
Some other minor changes.
1993-10-21 00:52:52 +00:00
pk 7f6cef25a6 Renamed confusingly named macro.
Fixed bug that was the result of said confusion.
1993-10-21 00:00:09 +00:00
pk 01f65b81e3 Make better distinction between SunOS and BSD. 1993-10-19 21:42:38 +00:00
pk 1dff6d7850 Define our copy of `errno', as it is no longer defined in libc. 1993-10-17 15:40:11 +00:00
pk 2dfde2bc39 Moved <link.h> here from usr.bin/ld as it is needed by other modules
and utilities (eg. crt0, libc, nm).
1993-10-17 00:51:30 +00:00
pk 0aebf1d941 A linker supporting shared libraries (sparc dependent code). 1993-10-16 21:54:33 +00:00
pk 3d68d0acae A linker supporting shared libraries (run-time part). 1993-10-16 21:54:08 +00:00
pk 34f24bf837 A linker supporting shared libraries (x86 dependent code). 1993-10-16 21:53:13 +00:00
pk 97ca10e374 A linker supporting shared libraries. 1993-10-16 21:52:27 +00:00
cgd 4b30c543a0 always use libcrypt 1993-10-07 02:16:39 +00:00
jtc 916781f049 converted to use mandoc macroes. 1993-10-06 19:38:15 +00:00
cgd ae863da8cd change root's command checking so that stat() is done only
on the first 'word' of the crontab command.
1993-09-23 23:13:44 +00:00
jtc 59e456d7fd Make sure we use rstat's protocol's values of FSCALE. We were picking up
the FSCALE from sys/param.h which caused our load averages to be sent
incorrectly to remote machines.
1993-09-23 18:42:39 +00:00
cgd 5f598b71b4 fixes from Dave Burgess <burgess@hrd769.brooks.af.mil> to quiet compiler
warnings.  this doesn't include the root crontab "fix"...
1993-09-17 03:46:44 +00:00
cassidy 129e9ff13e Initial check in. Major busted, but compiles atleast. 1993-09-07 03:21:32 +00:00
cassidy 1ddbd46ae3 Added to the src tree 1993-09-07 02:32:34 +00:00
cassidy 91a7ffd39b Added rarpd to the subdir list 1993-09-06 18:00:24 +00:00
mycroft b8302e3744 Excuse me while I be braindead for a minute. 1993-08-30 18:53:06 +00:00
mycroft f597ddb137 Add new uname() cookies like getty.
(I had thought telnetd spawned a getty.  Sigh.)
1993-08-30 18:50:53 +00:00
mycroft cea87043b4 Add some more magic cookies for the `im' string to display info from
uname(2):

	%s	sysname
	%r	release
	%v	version
	%m	machine
1993-08-29 22:47:03 +00:00
mycroft 14af0bbdda Add missing space after path name. 1993-08-16 16:04:53 +00:00
jtc b977f15be3 Touch up manpages. 1993-08-16 15:57:47 +00:00
mycroft 8892a122c9 Fix rcsid conflict. 1993-08-10 00:10:17 +00:00
cgd f08e3f34a5 merge in changes from netbsd-0-9-ALPHA2 1993-08-07 07:42:13 +00:00
mycroft 52efca41cd Nuke remaining patchkit headers. 1993-08-02 18:17:24 +00:00
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
mycroft 3d297ded4f Fix bogus handling of short writes. 1993-08-01 00:06:15 +00:00
jtc bbeb724e87 Use rmail from latest sendmail distribution. 1993-07-22 17:30:29 +00:00
jtc 9109dd93bf Updated to use "new" -mandoc macros. 1993-07-22 16:36:52 +00:00
brezak 3c0990e964 use XIDLE extension (if present) 1993-07-22 13:09:47 +00:00
brezak 98e705f4ed Look at correct device for X server idle time. 1993-07-16 14:57:19 +00:00
brezak 9d140301eb Uucpd from Net2 1993-06-29 18:53:47 +00:00
brezak 55a46f2c44 Changes for using XIDLE option. 1993-06-11 01:10:14 +00:00
brezak 045a590334 Add LOG_CONS when openlog(). 1993-06-10 12:23:47 +00:00
brezak 48b719546c Fix number of args to svcerr_progvers() 1993-06-09 19:54:03 +00:00
mycroft b73700b0f9 Fix typo. 1993-06-08 12:08:51 +00:00
brezak 73bd7fefad Add man page. 1993-06-08 01:21:15 +00:00
brezak dc16f1637f Updated man page. 1993-06-08 01:18:52 +00:00
cgd f67174d697 patch from David Greenman and Rod Grimes (davidg@implode.rain.com and
rgrimes@agora.rain.com) to support 57600 and 115200 baud
1993-06-05 22:40:40 +00:00
brezak 37e75f766c Only cleanup registrations if not started by inetd. 1993-06-04 15:50:38 +00:00
brezak db60ef9d46 No need to link with -lrpc 1993-06-04 14:53:53 +00:00
brezak e715315160 Add rpc.rstatd, rpc.rusersd, and rpc.rwalld. 1993-06-03 19:26:09 +00:00
cgd ec8ca0850a it was putting EOF, rather than newline. comments around
change bogus; it will *always* be putting out newline because
of the program logic.  the comments don't seem to indicate that.
1993-05-28 09:19:08 +00:00
cgd ba83ddc500 use crond.pid rather than cron.pid, like it used to. 1993-05-28 08:56:47 +00:00
cgd 9eccc35a44 update for newest version of vixie's cron, as of May 27 1993 1993-05-28 08:33:52 +00:00
guido 37e6c3d951 Weird security hole removed. Thanks to cor@hacktic.nl 1993-05-26 18:45:07 +00:00
deraadt 5840201f38 mail.local can now use username.lock files as well as flock(). Use the
-l flag in your favorite sendmail.cf file.
1993-05-24 07:30:36 +00:00
cgd 1a7cf74fda include a "To:" line in the message passsed to sendmail.
from Gordon Burditt <gordon@sneaky.lonestar.org>
1993-05-13 06:15:23 +00:00
glass 4be757ff79 following changes:
no longer compiled with debugging turned on.
	uses syslog and not /var/cron/log directly for logging stuff
	fixed missing ifdef
1993-05-11 08:16:01 +00:00
cgd aabb4903c2 add bugfiler 1993-05-03 19:49:55 +00:00
cgd 811e6386f8 changed to use new libcrypt scheme. 1993-04-26 14:33:28 +00:00
mycroft 895bb1c31d Use global value of CFLAGS. 1993-04-25 08:13:28 +00:00
mycroft ff3324f812 Cleanup for GCC 2. 1993-04-22 03:45:05 +00:00
mycroft c1d3c01291 Cleanup for GCC 2. 1993-04-18 18:14:35 +00:00
cgd 93d7644e4b fixed var vs. usr in man page, and made it say "elvispreserve" 1993-04-08 02:46:10 +00:00
cgd 18969c77a9 incorporated alm's update of elvis to 1.7 1993-04-08 02:22:57 +00:00
cgd 01de02062a changes by rod grimes for 386bsd 1993-04-02 10:51:19 +00:00
cgd 2af375f803 bugfiler, brought in from net/2... 1993-04-02 10:49:34 +00:00
glass 8fad5a8a93 cleanup so that crond compiles quietly 1993-03-28 17:24:43 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 649bd7ccc5 added support for using real crypt 1993-03-22 23:27:33 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00