Commit Graph

330 Commits

Author SHA1 Message Date
gpalmer
f51cfabe50 Close PR #29. The file should be /etc/ftpmotd, not /etc/motd. 1995-04-15 07:02:22 +00:00
ache
5e0d09f059 Add some useful sendmail options 1995-04-12 19:21:43 +00:00
ache
1bb8ac6c3c Upgrade.
Close security holes reported.
1995-04-12 02:52:21 +00:00
gpalmer
9d69b1d112 The servers bootpd & bootpgw live in /usr/libexec not /etc. Correct the
references in the man page.
1995-04-12 00:24:48 +00:00
ache
2cbe4b6fcc Fix truncating hostname using MAXHOSTNAMELEN
Submitted by: Jan Conard <charly@fachschaften.tu-muenchen.de>
1995-03-24 05:15:09 +00:00
ache
cb5993b734 Fix wtmp logout
Submitted by: Gil Kloepfer Jr. <gil@limbic.ssdl.com>
1995-03-20 05:58:37 +00:00
nate
2d04d64097 Removed /usr/local/lib from the standard library search path to be
consistant.  Programs shouldn't rely on non-standard paths for bringing
in default libraries.

Suggested by:	Andreas Schulz <ats@freebsd.first.gmd.de>
1995-03-19 21:20:09 +00:00
bde
aac4af3133 Restore the 4.4lite version which apparently was clobbered by a repository
copy.  The differences are trivial.  I have no backups of the clobbered
history.
1995-03-18 17:38:43 +00:00
nate
bbc020cc5c Don't rely on the shared library bringing in libmd, do it explicitly.
Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
1995-03-18 06:50:00 +00:00
nate
90728fa67c Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
1995-03-18 06:41:08 +00:00
nate
b9aa930e44 Weak symbol support from NetBSD. This should bring us in sync with the
NetBSD ld code except for local changes for dlopen() and friends and
the hashing on the minor value of the shlibs.  We should be binary
compatible now with all their libraries.

Obtained from: NetBSD
1995-03-04 17:49:20 +00:00
jkh
4a6435a5dc I think the security check to invalidate ALL write requests was just a little
excessive, and violates the specification defined in the manpage to boot.
1995-02-26 23:28:00 +00:00
guido
ee5cff554b Add some functionality to ftpd so it logs all anonymous file
transfers. It only does this when -S is set.
Reviewed by:
Submitted by:
Obtained from: logdaemon package
1995-02-26 19:36:59 +00:00
ats
2e334fc7b7 Add a description for the np flag. 1995-02-15 13:59:56 +00:00
jkh
87505148a9 Support for >32 PTYs.
Submitted by:	Heikki Suonsivu <hsu@cs.hut.fi>
1995-02-09 11:11:01 +00:00
jkh
e6d3fa5c49 Support for more Sun compatible dlopen() and friends. Also added proper error
handling.
Reviewed by:	gj
Submitted by:	Mark Diekhans <markd@grizzly.com>
1995-02-07 13:33:42 +00:00
phk
f1d31d40fa fixed spelling error. 1995-02-04 19:11:14 +00:00
dfr
48859413cd Discard any messages which are buffered on the routing socket before using
it otherwise the response to one of our routing messages could be lost due
to buffer overflow.
1995-01-30 11:11:43 +00:00
dfr
0036e9d1e7 Change to use RTM_CHANGE when an arp entry already exists. This closes
problem bin/57 which was caused when an incomplete entry was present for the
host which was booting.
1995-01-16 18:57:45 +00:00
joerg
0cd8c74ee0 Make ldconfig and ld.so not hashing the shared lib minor number. This
misfeature caused troubles when a program attempted to access a shlib
where one with a higher minor number has been hashed.  Ldconfig does
only include the highest-numbered shlib anyway, so this is in no way a
limitation of generality.

Caution: after installing the new programs, your /var/run/ld.so.hints
needs to be rebuiult; run ldconfig again as it's done from /etc/rc.
1995-01-12 19:12:29 +00:00
swallace
bbf1f2302a Change to
#define STANDARD_SEARCH_DIRS    "/usr/lib", "/usr/X11R6/lib", "/usr/local/lib"
Like in 2.0R, except without /usr/X386.
1995-01-05 02:36:29 +00:00
gibbs
55e3943ae8 Remove -DDIAGNOSTIC in makefile. The DIAGNOSTIC code is severly broken and
will change if I have more time to look at it.  Keep at least 5 segments
cleaned if possible (instead of 2 which is a bare minimum for FS operation).
1995-01-04 23:54:06 +00:00
nate
7f56eb7b93 Updated to recent version of Paul K.'s shlib code. This code has better
warning handling and allows for link-time warnings with a modified
version of gas.

Note: Not all of the newer bits were updated such as some of the non-x86
machine-dependant code is relevant to FreeBSD right now.

Obtained from: NetBSD
1994-12-23 22:31:35 +00:00
ache
16912a5d08 Fix hostnames >32 chars
Submitted by: cstruble@singularity.bevc.blacksburg.va.us
1994-12-15 01:21:06 +00:00
ache
0ab4afe05b Remove -u argument, does nothing for non-priviliged user.
Write LOGNAME in addition to USER as sun uucpd does.
1994-11-25 02:27:08 +00:00
ache
493c819261 mass fixes from 1.1.5.1 + better log erros and incorrect logins 1994-11-23 19:33:17 +00:00
ache
d1aa83039e Fix uucico path
Submitted by:  Gene Stark
1994-11-23 17:48:31 +00:00
wollman
740456e526 Add distribution=krb for P-HK 1994-11-20 23:23:28 +00:00
ats
1e4e71f6b0 Make two variables static so that the compiler warnings are
vanishing. As far as i know rpc.rusersd is single_threaded, so
this shouldn't be a problem.
1994-11-18 23:36:18 +00:00
ats
3bd8d2abd3 Reviewed by: Roger Holst roger@first.gmd.de
Add an initialization of the len parameter for the getsockname call.
Now rpc.rwalld can run under inetd.
1994-11-18 22:50:22 +00:00
ats
0b8b8f01ee Reviewed by: Roger Holst roger@first.gmd.de
Add an initialization of the len parameter for the getsockname call.
Now rpc.rusersd can run under inetd.
1994-11-18 22:40:11 +00:00
ats
3e9710907d Reviewed by: Roger Holst roger@first.gmd.de
Add an initialization of the len parameter for the getsockname call.
Now rpc.rstatd can run under inetd.
1994-11-18 22:31:05 +00:00
phk
03deccaeb8 Relativized a ".PATH:" directive. 1994-11-18 02:26:15 +00:00
jkh
e78f90a463 __386BSD__ -> __FreeBSD__
I know that many of these entries are bogus and need to be revisited,
but let's get the tree working again for now and then do a pass through
looking at all the __FreeBSD__ entries, shall we?
1994-11-04 02:14:13 +00:00
pst
9b41696ca0 recommit rev 1.5 of ftpd, I fatfingered a command 1994-10-27 19:36:01 +00:00
pst
387cc054fe Printing out /etc/motd when a ftp login occurs is a security hole
(as is printing out a version number at the telnet login banner).

Don't print out /etc/motd when people login, instead if present,
print out /etc/ftpmotd.  It looks like 4.4lite2 has done something similar
(perhaps for different reasons) because /etc/motd no longer shows up
on vangogh.

Folks who like the old behavior can create a symbolic link to motd.
1994-10-27 19:14:39 +00:00
ache
21a0da26e1 Implement security fix correctly: via isprint() 1994-10-22 17:37:06 +00:00
phk
9940e15ad2 A nice little security fix. Things must be rough in moscow...
Submitted by:	dima@demos.su (Dima Ruban)
1994-10-22 17:19:49 +00:00
jkh
5b90192157 Add xtend. 1994-10-22 14:58:56 +00:00
jkh
99c7958655 This commit was generated by cvs2svn to compensate for changes in r3779,
which included commits to RCS files with non-trunk default branches.
1994-10-22 09:53:33 +00:00
jkh
d5c5338901 The X-10 demon. From 1.1.5.1. 1994-10-22 09:53:33 +00:00
pst
d772bde0c4 Figured it out, misapplied a patch, ftpd now works again. 1994-10-22 06:23:15 +00:00
pst
8e9dc68f93 Fix broken command parser (fall back 10 yards and scratch head). 1994-10-22 06:19:53 +00:00
pst
3bbaa5903c Include most of the logdaemon v4.4 S/key changes 1994-10-19 00:03:45 +00:00
ache
ac384b2ac2 Extend message format to user@offset[:file]
Obtained from: FreeBSD 1.x
1994-10-15 17:39:23 +00:00
dg
1a51ff14c3 Updated to changes in struct vmmeter. There is a slight bogosity here:
"pageins/outs" now refers to vnode paging.
1994-10-15 13:39:54 +00:00
pst
e21dbb93b1 Clean up makefile 1994-09-30 21:19:58 +00:00
pst
d66cc2a40a make rexecd link against skeyaccess, not authfile 1994-09-30 06:38:43 +00:00
pst
a9e6b1a898 Move bootp & related stuff 1994-09-30 05:48:52 +00:00
pst
68e1cd350c Rearrange bootpd 1994-09-30 05:45:07 +00:00
pst
f3c3e3b79d Rearrange bootpd 1994-09-30 05:45:07 +00:00
pst
ea773c44ec This commit was generated by cvs2svn to compensate for changes in r3229,
which included commits to RCS files with non-trunk default branches.
1994-09-30 05:45:07 +00:00
pst
89d381ac07 Rearrange bootp 1994-09-30 05:43:13 +00:00
pst
d64c356cf6 This commit was generated by cvs2svn to compensate for changes in r3227,
which included commits to RCS files with non-trunk default branches.
1994-09-30 05:43:13 +00:00
pst
02b021a2a7 Use new skey access routines 1994-09-29 18:59:42 +00:00
csgr
e9bb220eef First level of changes for bringing in eBones (kerberos).
- Get rid of inverse logic (NOKERBEROS and NOEBONES) in src/makefile,
and replace with MAKE_KERBEROS and MAKE_EBONES.  (Far fewer contortions,
and both default to off.)  IF YOU WANT KERBEROS, YOU HAVE TO EXPLICITLY
DEFINE ONE OF THESE.
- Make Makefiles kerberos-aware.
1994-09-29 13:06:54 +00:00
pst
e9556ba2e9 Tighen up rexecd(8) security (see manual page for details).
Rexecd is a crock, it never should have been written,  however make it so
that people who have a need to run it don't hurt themselves so badly.

Obtained from: Ideas obtained from logdaemon 4.3 from Wietse Venema
1994-09-29 09:23:58 +00:00
pst
8b9944a4b2 Forget it. pcnfsd is too ugly for words because of the hand edited
rpc files and other cruft.  It's not important enough to have it in the
source distribution and I don't feel comfortable with this, as it's below
the standards of CSRG.

Disable & remove pcnfsd.  Either I'll rewrite this so it can all be
generated with rpcgen or stuff it in ports and let it rot there.
1994-09-28 18:22:08 +00:00
pst
4354befc59 Port rpc.pcnfsd to FreeBSD and enable 1994-09-28 18:14:57 +00:00
dg
7a0e318154 Fixed bug where /etc/ftpusers was ineffective. Caused by the wrong
pointer being passed to strcmp(). Bug noticed by Matthew Green.
1994-09-20 15:53:30 +00:00
swallace
8d67c8cc5d Add LDDESTDIR to ld command.
Add -I${DESTDIR}/usr/include to cpp command.
1994-09-18 19:41:38 +00:00
dg
8d2ab06cf5 Fix from John Kohl:
/usr/libexec/getty doesn't properly interpret the '%d' escape.  It tries
to use %P to get AM or PM, but instead all it gets is "P".

Submitted by:	John Kohl
1994-09-18 04:14:54 +00:00
bde
11fe93eee4 Unmap hints file when finished with it, so that it can go away
completely when ldconfig unlinks it.  If init is shared, then the
referenced unlinked copy of the hints file created by running
ldconfig in /etc/rc caused the file system to be unclean after
every reboot.
1994-09-15 20:48:55 +00:00
rgrimes
83c1bfeaeb Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap 1994-09-11 21:53:28 +00:00
paul
04fe68f132 Removed bugfiler.
Submitted by:	Paul Richards
1994-09-09 16:40:27 +00:00
csgr
b1dfd03477 Don't define KLUDGELINEMODE.
(If you do, you will have problems trying to telnet into a FreeBSD-2.0
box from a Sun, and I WANT TO DO THAT.)
Submitted by:	Geoff
1994-09-05 20:36:34 +00:00
ache
8aa2891ca7 Ignore SIGQUITs, cause getty dumps core on garbadge from modem line 1994-08-29 17:28:58 +00:00
bde
4b07d8e782 Add dependencies on libraries to DPADD. Someday this should be done
automagically.  -lfoo has to be right to work, but ${LIBFO0} is too
easy to forget or misspell; nothing checks it and it should be
different for shared libraries.
1994-08-28 18:49:06 +00:00
csgr
e6984876ef add: rpc.rstatd rpc.rusersd rpc.rwalld
Submitted by:	Geoff.
1994-08-28 15:18:51 +00:00
csgr
70aa8df079 This commit was generated by cvs2svn to compensate for changes in r2341,
which included commits to RCS files with non-trunk default branches.
1994-08-28 14:58:36 +00:00
csgr
8adc1df0cc rwalld from FreeBSD 1.1.5.1
Reviewed by:	Geoff
Submitted by:	Christopher G. Demetriou
1994-08-28 14:58:36 +00:00
csgr
79d61d21e6 rusersd from FreeBSD 1.1.5.1
Reviewed by:	geoff.
Submitted by:	John Brezak
1994-08-28 14:53:45 +00:00
csgr
a979028ace This commit was generated by cvs2svn to compensate for changes in r2337,
which included commits to RCS files with non-trunk default branches.
1994-08-28 14:53:45 +00:00
csgr
31c1d9b089 rstatd -- from FreeBSD-1.1.5.1, with changes for 4.4-Lite kvm interface.
Original rstatd by John Brezak
Submitted by:	Geoff.
1994-08-28 14:49:04 +00:00
csgr
56e79d0c70 This commit was generated by cvs2svn to compensate for changes in r2334,
which included commits to RCS files with non-trunk default branches.
1994-08-28 14:49:04 +00:00
wollman
189837a5f0 Install ld.so immutable. 1994-08-26 19:11:14 +00:00
jkh
c1a91349de Whoops - forgot to add this guy.
Reviewed by:
Submitted by:	jkh
1994-08-26 05:32:15 +00:00
jkh
8028c13dae Replace this with the 1.1.5.1 getty. David says that the 4.4 version is too
broken to live.
Submitted by:	jkh
1994-08-26 05:19:17 +00:00
guido
124456a1b1 Add -DBSD4.2 and -DBSDINETD so uucpd makes sense. Further correct a
warning at compil time.
This actually makes uucpd at tcp port 540 work, so slippers can  poll
over tcp.
Reviewed by:
Submitted by:	guido
1994-08-23 20:13:32 +00:00
jkh
628bc4d0cb Add back atrun
Submitted by:	jkh
1994-08-23 03:10:47 +00:00
guido
26e50b1c3e Implement fbtab ala SunSO.
Could not compile it (on thud) because ttychar.h was still broken.
Reviewed by:
Submitted by:	guido
1994-08-22 19:55:08 +00:00
guido
170df33e71 Add skey support
Reviewed by:
Submitted by:	guido
1994-08-21 19:10:43 +00:00
guido
c1db1c5a23 Put skey support to ftpd
Reviewed by:
Submitted by:	guido
1994-08-21 19:09:58 +00:00
guido
a368a750a1 Put skey support in ftpd.
Reviewed by:
Submitted by:	 guido
1994-08-21 19:09:23 +00:00
csgr
3d802d8383 LDADD= -lcrypt
Submitted by:	Geoff
1994-08-20 21:36:40 +00:00
csgr
bb1890fe44 LDADD= -lcrypt
Submitted by:	Geoff
1994-08-20 21:19:46 +00:00
guido
957ff9bd53 Plug already known security hole. (Brought over from 1.1.5):
Fixed security problem with telnetd, which allowed
        telnet -l -hcert.org localhost
to change the user's host in utmp.
Thanks to Matthew Green <mrgreen@@mame.mu.oz.au> for showing me this one.


Reviewed by:	karl, guido
Submitted by:	mrgreen@@mame.mu.oz.au
1994-08-15 20:06:13 +00:00
guido
e55e130de4 Plug security hole that was already fixed in 1.1. It prevents
user from specifying their hostname when rlogin()-ing in
(using rlogin -f-h<host>)

Reviewed by:
Submitted by:
1994-08-15 19:44:50 +00:00
csgr
0c0aebce48 Remove the scary bits from telnetd - no more encryption left here.
Only crypt.c in libc remains.
Reviewed by:	Geoff Rehmet
1994-08-12 23:00:04 +00:00
jkh
1b1c54c402 Change bogus --I to -I to make compilation happen again.
Submitted by:	jkh
1994-08-10 04:55:19 +00:00
wollman
96c19e77ba Update to new make macros and disable Kerberos because we haven't got it
set up right yet.
1994-08-05 21:24:58 +00:00
wollman
fa7e8791ec For the moment, don't build kpasswdd until we figure out what
to do with it.
1994-08-04 21:54:38 +00:00
phk
002b4706b8 Reviewed by: phk
changed ^G to \007
1994-07-24 02:44:28 +00:00
rich
c2b2b84657 Changes from Paul Kranenburg which bring us into sync with his sources:
handling of errors through the standard err() and warn()
 more fixes for Geoff Rehmet's NULL pointer bug.
 fixes NULL pointer bugs when linking mono and nested X servers.
 supports a `-nostdlib' option.
 accept object files without a symbol table
 don't attempt dynamic linking when `-A' is given

a few variable names have chaged (desc -> fd), and the formatting has
changed which should make it much easier to track his sources.

I tested 'make world' for /usr/src and X twice with these changes.
1994-06-15 22:41:19 +00:00
rgrimes
6c494f2fb2 Disable afterinstall rule as it is broken when you have CVS files around.
Reviewed by:
Submitted by:
1994-05-30 14:01:24 +00:00
rgrimes
71d9813960 rbootd compiles on i386 too.
Reviewed by:
Submitted by:
1994-05-28 06:21:34 +00:00
rgrimes
758c6e92c9 BSD 4.4 Lite Libexec Sources 1994-05-27 12:39:25 +00:00
rgrimes
7d07d2de2f BSD 4.4 Lite Libexec Sources 1994-05-27 12:39:25 +00:00
rgrimes
17dc789a4b This commit was generated by cvs2svn to compensate for changes in r1592,
which included commits to RCS files with non-trunk default branches.
1994-05-27 12:39:25 +00:00
ats
a673d40f25 Change the private declarations from dlopen,dlclose,dlsym,dlctl
to public. These functions are also used in /usr/include/link.h,
so it looks, like they shouldn't be private.
I will ask Paul about that, if this is correct.
1994-04-13 20:52:40 +00:00
ats
cc04fd6ad5 Due to the deletion of the gcc support from libc we need again the
-lgcc_pic library. rtld uses the udivd3 routine from it.
Repeat the bug by simply compiling ld on current.
1994-03-10 23:19:54 +00:00
jkh
477937c24f This is Paul K's latest set of ld changes. A commit was necessary at this
late stage due to the fact that link.h was copyright Sun Microsystems.

This version of ld sync's us up with NetBSD's ld and supports compatablily
with NetBSD's -[zZ] flags (which we had reversed).  Compiling with this
new ld will give you RRS warnings for libraries which do not contain .type
infomation - these wsarnings are harmless and will go away as soon as you
recompile your libraries (cd /usr/src; make libraries).
1994-02-13 20:43:13 +00:00
rgrimes
30e3f6b4a0 Remove /usr/X386/lib and /usr/local/lib from the default locations,
these are handled by /etc/rc and this was causing errors on a new
install as these places do NOT exsist by default!
1994-02-09 02:29:31 +00:00
dg
50dde40ae0 Removed dependance on EX_DYNAMIC in making decisions on the magic number. 1994-01-19 15:00:37 +00:00
jkh
9f745bbfc3 More proper fix for for shared lib debugging support. 1994-01-14 11:47:00 +00:00
jkh
29f81b79b8 1. Fix bug where duplicate symbol warnings were suppressed. This often
caued ld to `exit silently', to general confusion.

2. Add Gary Jennejohn's fix to support debugging of shared libraries.
1994-01-12 23:16:19 +00:00
nate
fabe92192e Modified Os string to be FreeBSD instead of NetBSD 1994-01-05 01:03:58 +00:00
nate
69dc0f6e65 Added the Linux atrun command as hacked by Chris Demetriou for NetBSD. 1994-01-05 01:03:02 +00:00
dg
d44d2d472f Implemented 'QMAGIC' a.out format correctly, and changed the default
output to be QMAGIC.
1994-01-03 18:35:54 +00:00
jkh
03fd21e05b C++ support changes (+misc fixes) from Paul K. 1993-12-22 23:28:35 +00:00
jkh
21990edfab Broke sbrk() out of rtld as part of general cleanup. 1993-12-11 21:06:00 +00:00
jkh
2f700dbb7c Omitted 4th argument to findshlib() [thanks Rich!]. Our ld is a bit
different from NetBSD's here and it squeaked through the update.
1993-12-11 20:08:39 +00:00
jkh
fa2f998399 Sync up with Paul K's latest ld from cesium. 1993-12-11 12:02:10 +00:00
jkh
4bb66b3efe makedepend fails for ld. I think it because the .S files are
preprocessed the same as when they are compiled.  I just remove the
single-quotes from the offending comments.  Rich
1993-12-10 10:16:00 +00:00
jkh
0e47039eee David Greenman's latest changes to eliminate much stack-walking jazz
(no more sbrk_init()!).
1993-12-09 17:45:43 +00:00
jkh
e781a415b5 More changes to bring FreeBSD in sync with Paul K's latest. 1993-12-04 00:53:16 +00:00
jkh
0692c29b44 More changes to bring FreBSD in sync with Paul K's latest. 1993-12-04 00:53:02 +00:00
jkh
82cf8558b8 Second attempt to integrate Paul K's changes. 1993-12-02 01:03:47 +00:00
ache
66add984dc Remove hanging #else part (with second sbrk()) without #if & #endif
Add missing argument to findshlib, I am not shure,
but it seems that it is 1.
!!! Does anybody compile it before commit?
1993-12-01 15:05:31 +00:00
jkh
90b65690ec Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
jkh
5465ba6a25 Added -lgcc_pic back again. 1993-11-25 01:06:42 +00:00
jkh
f730dcb859 Some of the latest changes from Paul K (taken from NetBSD-current). 1993-11-22 19:05:31 +00:00
paul
3eb63c406d Incorporated fixes from Paul to make -Z option work. Emits old-style
ZMAGIC magic numbers in a long.
1993-11-15 20:58:20 +00:00
paul
7666248dea Added -lgcc_pic to Makefile -- Why do we need this and NetBSD don't ??
Incorporated patch by Guido (inspired by Davidg) that fixes stack
problem. May not be final fix but it works more than the current method.
1993-11-09 04:44:30 +00:00
paul
62cf7a7029 Updated to newest ld from pk.
lib.c:
Pull in archives containing definitions needed by shared objects.
warnings.c:
Less spurious "undefined symbol" msgs for shared library defined
symbols.
ld.c:
Do a better job of recognising data in text segments, eg. `const char []'.
shlib.c,ld/rtld/{Makefile rtld.c}
Use strsep() in stead of strtok() and restore colons in eg. env. vars.
1993-11-09 04:19:36 +00:00
paul
6de07adf6a Added -lgcc_pic to LDFLAGS in rtld/Makefile 1993-11-07 03:25:25 +00:00
paul
66fdbc00cf Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
nate
61fdd33a1c Libcrypt upgrade 1993-07-20 23:49:11 +00:00
root
64fa45ecd0 New manual page system 1993-07-02 05:48:19 +00:00
rgrimes
25062ba061 Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00