7189 Commits

Author SHA1 Message Date
ache
1402f0cd95 Change strtok() to strsep(), using strtok() can cause memory corruption
if user program use it too in the same time.
1995-03-24 16:33:44 +00:00
jkh
cf9f680883 Add what looks to be the right fix to this bogus code. 1995-03-24 16:07:09 +00:00
ache
522e5e4d53 Sicnce this code shares the same fragment as gethostnamaddr:
Change strtok() to strsep(), cause memory corruption for all
programs which use strtok() too in the same time.
Fix potential NULL reference, depends of /etc/hosts.conf format
Fix the bug when service name fetched always from beginning of the line,
not from parsed token.
1995-03-24 15:51:30 +00:00
ache
74c984e74d Change strtok() to strsep(), cause memory corruption for all
programs which use strtok() too in the same time.
Fix potential NULL reference, depends of /etc/hosts.conf format
Fix the bug when service name fetched always from beginning of the line,
not from parsed token.
1995-03-24 15:38:54 +00:00
phk
65933ca3a1 Fix cdrom.1 target. 1995-03-24 08:10:53 +00:00
wpaul
5d03aae6f1 Yikes! Fix stupid mistake I made in last commit that made getpwent() ignore
local password entries when YP was enabled. (How the heck did that
get by me!?)
1995-03-24 08:01:01 +00:00
jkh
3cb184c016 Back out previous patch - better kept as a reminder. 1995-03-24 06:44:55 +00:00
jkh
955b0fa556 Adjust include paths. 1995-03-24 05:56:41 +00:00
wpaul
946e0fba44 As per Justin T. Gibbs's request, agument the +@netgroup/-@netgroup
remapping mechanism in the following manner: if given an entry +@foo
and there is no netgroup named 'foo,' try searching for a regular
user group called 'foo' and build the cache using the members of
group 'foo' instead. If both a netgroup 'foo' and a user group 'foo'
exist, the 'foo' netgroup takes precedence, since we're primarily
interested in netgroup matching anyway.

This allows access control schemes based on ordinary user groups
(which are also available via NIS) rather than netgroups, since
netgroups on some systems are limited in really brain-damaged ways.
1995-03-24 05:46:47 +00:00
ache
5ece83c427 Add yet one popular russian keyboard variant
Submitted by: Serge Babkin <babkin@hq.icb.chel.su>
1995-03-24 05:40:17 +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
jkh
3397bb5f27 Comment out a table of contents spec that didn't exist. 1995-03-24 04:42:21 +00:00
jkh
5cd9479b98 kbdfont -> vidfont for greater commonality with kbdcontrol/vidcontrol 1995-03-24 04:36:19 +00:00
jkh
7b2df764f5 Bring back perl/usub as usub/, this time containing an updated curseperl
which is also installed by default (the reason for which should also be
plain shortly).
1995-03-24 04:33:54 +00:00
phk
a4a0a39769 Fix srcdist names. Fix structure in ftp-area. 1995-03-24 04:20:35 +00:00
phk
cfb98a92bd Fix a bogon. 1995-03-24 03:38:48 +00:00
phk
a3bee0e414 A whole slew of changes relating to the generation of src-dists. 1995-03-24 02:45:34 +00:00
phk
946c41de42 The "DISTNAME" is now configured here too. 1995-03-24 02:41:47 +00:00
phk
0d8a56e891 Make src-tarballs in one level. Don't tar things named 'obj' 1995-03-24 02:05:32 +00:00
phk
0c27d01e40 Tolerate both ways of doing the src-dists. 1995-03-24 02:04:00 +00:00
gibbs
f5c5f067b7 Add recognition of HP Printer Job Language (PJL) commands. 1995-03-24 01:17:29 +00:00
jkh
95e1c7a31e Add the font index file. Other languages (French, Swedish, other)
needed for this file!
1995-03-24 01:11:56 +00:00
jkh
5b719619ee Add the keymap index file. Other languages (French, Swedish, other)
needed for this file!
1995-03-24 01:11:40 +00:00
jkh
fa2147ddc7 This commit was generated by cvs2svn to compensate for changes in r7302,
which included commits to RCS files with non-trunk default branches.
1995-03-24 00:52:28 +00:00
jkh
499fee9f1f Bring in the kbdmap/kbdfont utilities from Wolfram Schneider.
Renamed them to make them more consistent with kbdcontrol/fdcontrol/etc.
1995-03-24 00:52:28 +00:00
jkh
2c3e08c608 Set hostname properly in /etc/sysconfig 1995-03-24 00:23:18 +00:00
phk
a5da6ee74d set SHELL for ftp. 1995-03-24 00:23:02 +00:00
jkh
c1308f08b1 Name juggling, make things a little clearer. 1995-03-24 00:18:31 +00:00
jkh
c810d7bf7d Add rc.maint file. 1995-03-24 00:17:37 +00:00
phk
725eec5127 Add a missing ${DIST}/ 1995-03-24 00:16:51 +00:00
jkh
ed0b137aab start syslog earlier
add optional ibcs2 startup
1995-03-24 00:16:26 +00:00
phk
3b5c333046 Install /etc/sysconfig 1995-03-24 00:15:15 +00:00
jkh
9f3dfc26ee Correct a few spelling bogons.
Submitted by:	phk
1995-03-24 00:11:02 +00:00
jkh
d1ff4f8c28 Get around problem of not exporting variables in sysconfig 1995-03-24 00:01:21 +00:00
rgrimes
8693f78768 Add gnu/usr.bin/ld to lib-tools: since you need this compiled very
early if you are running a back release.
1995-03-23 23:40:29 +00:00
wpaul
a37e0133a6 Re-enable +::::::::: wildcards that I had previously disallowed.
Note: if you put +::0:0:::::: in /etc/master.passwd as your only NIS
entry, it will cause all NIS uids and gids to be remapped to zero. This
is *intentional*. That's the way it's supposed to work. Enabling NIS with
no remapping at all is done with +:::::::::, not +::0:0::::::. Similarly,
+:::::::::/bin/csh will remap the shells of all NIS users to /bin/csh.
Or, you could do +wpaul:::::::::/bin/csh to remap NIS user wpaul's shell
to /bin/csh but leave everyone else alone.
1995-03-23 22:31:11 +00:00
wpaul
7cd88703a8 Don't let yp_match() or yp_next() operate on null or empty keys: asking
ypserv to do a yp_match() with an a null or empty key causes much havok.
(Note that this could be construed as a denial of service attack if used
maliciously.)
1995-03-23 22:23:15 +00:00
wpaul
77a782d587 Don't let setnetgrent() operate on a null or empty group name: it can
tickle a bug in ypserv and make a serious mess of things.
1995-03-23 22:21:16 +00:00
wpaul
ec2490897f Very important sanity checks: today I clobbered all four NIS servers on
my network because setnetgrent() was trying to do a lookup on group "".
It seems that an attempt to do a yp_match() (and possible yp_next())
on a null or empty key causes Sun's ypserv in SunOS 4.1.3 to exit
suddenly (and without warning). Our ypserv behaves badly in this
situation too, thoush it doesn't appear to crash. In any event, getpwent,
getnetgrent and yp_match() and yp_next() are now extra careful not to
accidentally pass on null or empty arguments.

Also made a small change to getpwent.c to allow +::::::::: wildcarding,
which I had disabled previously.
1995-03-23 22:18:00 +00:00
gpalmer
fe78d93cbe Add a misssing `@' from before echo -n "|${MAINTAINER}" 1995-03-23 20:42:42 +00:00
wollman
7a1628aa01 Enable DES if NOCRYPT is not set and and the user has the secure sources. 1995-03-23 19:13:04 +00:00
wollman
294d85f56c This commit was generated by cvs2svn to compensate for changes in r7283,
which included commits to RCS files with non-trunk default branches.
1995-03-23 19:09:24 +00:00
wollman
a42f520712 Mark Murray's authdes.c for xntpd 1995-03-23 19:09:24 +00:00
phk
d42111863a Having BLOCKSIZE=K and using "-k" option ls would use 2K block size... 1995-03-23 19:05:00 +00:00
rgrimes
4e8db361d6 Fixed last defined(WANT_MSUN) -> !defined(WANT_CSRG_LIBM) in the src tree. 1995-03-23 19:03:02 +00:00
wollman
04db7a9c80 in_var.h: in_multi structures now form a queue(3)-style LIST structure
in.c: when an interface address is deleted, keep its multicast membership
.     records (attached to a struct multi_kludge) for attachment to the
.     next address on the same interface.  Also, in_multi structures now
.     gain a reference to the ifaddr so that they won't point off into
.     freed memory if an interface goes away and doesn't come back before
.     the last socket reference drops.  This is analogous to how it is
.     done for routes, and seems to make the most sense.
1995-03-23 18:14:41 +00:00
wollman
784a7ccf3c radix.c: correct exit condition in rn_walktree_from()
route.c: be a little more careful when running deleting children of dying
.        routes
1995-03-23 18:07:29 +00:00
wpaul
0eb3db6023 Lots of fixes/improvements in the +user substitution handling:
- Have the +@netgroup/-@netgroup caches handle the +user/-user cases too.
- Clean up getpwent() to take advantage of the improved +user/-user handling.
1995-03-23 17:33:19 +00:00
wpaul
f1a6a16e95 Summarily enable YP as soon as any a '+' is detected instead of generating
special values when +user substitutions are in effect. The new getpwent
code can handle all the special cases itself now.
1995-03-23 17:22:37 +00:00
bde
0e5a707fe6 Support disk slices. This involves mainly replacing inline code with
function calls.  Broken tracking of open partitions gets fixed as a side
effect.  Races in sdopen() and sdioctl() become more numerous than before.

Close the device in sdsize().  Media removal could not have worked right
when unused swap devices were held open.  There may now be a problem
with used swap devices not being held open.

Fix ancient operator precedence bug in sddump().  It may have been
possible to attempt dumping to unloaded media.

Remove NetBSD ifdefs.  We're too different now, and the NetBSD driver was
already too different for them to be relevant.

Remove support for soft write protection.  There are no ioctls to set it,
and this driver never set it either.  It was used in the wd driver to
disable writing to unlabelled disk, but we want to support writing to
foreign partitions on unlabeled disks.

Clean up some formatting and restore some old-style function headers.
1995-03-23 16:09:01 +00:00