Commit Graph

1334 Commits

Author SHA1 Message Date
wosch
e3484cdbc1 fix C programmer's bug number 12.2
submitted by: bruce
1996-11-17 02:16:34 +00:00
joerg
f420193dce Fix the C programmer's bug #1: EOF is of type int', not char'.
Strong 2.2 candidate.

Submitted by:	wosch
1996-11-17 00:22:54 +00:00
peter
fd402a6d26 pw_scan() was being used to convert a string into a struct passwd, with
an auto stack variable that was about to disappear.  It broke with some
nis passwd changes because of a gethostbyname() call that uses a fair bit
of stack..  This was a timebomb waiting to go off at any time and could
have been causing subtle corruption for a while.

AARGH!!

This is HIGHLY reccomended for 2.2 and presumably 2.1.6
1996-11-15 17:36:20 +00:00
ache
7a2c703c2b Report net connection error via hstrerror(h_errno) now instead of
simple fact that can't connect
1996-11-14 07:36:26 +00:00
ache
c9c621c36a Change to new ftpLogin interface
Now clearly say: Not logged in
instead of old: Broken pipe
(note it was original reason for all my libftpio changes)
1996-11-14 07:06:25 +00:00
jkh
3476d24e83 Now that systat's working again, bring the vmstat cleanup over from
-stable.
1996-11-12 19:16:46 +00:00
paul
1b2f6a39ea Added a missing \ for installing perl modules.
2.2 and 2.1.6 candidate.
1996-11-10 15:49:49 +00:00
peter
fb2d026372 Cosmetic bugfix. fetch was modifying it's argv[] strings in place, which
caused ps(1) to show strange things..
1996-11-10 14:46:50 +00:00
bde
d6f309e9f6 Initialize interrupt counters. The boot time values were displayed as ***.
Should be in 2.2.

Pointed out by:	/etc/malloc.conf -> AJ
1996-11-10 08:30:18 +00:00
joerg
d30fd798ce Merge from the 2.2 branch: avoid including the API stuff when building
vi for the fixit floppy.  Perhaps we'll find a more elegant solution
some day, by now it has proven to work reasonably.
1996-11-09 16:54:33 +00:00
wosch
36dc973b91 add PATH variable 1996-11-05 07:24:48 +00:00
wosch
5b9a9c84b8 add PATH variable
better argument handling
1996-11-05 07:22:47 +00:00
wosch
71d63a02b3 add /sbin to PATH, the location of sysctl(8) may changed in future
use shell builtin 'exec' for last command
1996-11-05 07:17:33 +00:00
hsu
aa2308001f Add YYLEX and YYEMPTY macros to make byacc look more like bison.
Obtained from:  Cygnus source tree, with permission.
		Original commit by Jim Wilson, wilson@cygnus.com.
1996-11-04 21:54:52 +00:00
ache
881f146563 Install message catalog links according to standard naming convention
Message catalogs not works without this change

2.2 candidate
1996-11-04 02:52:33 +00:00
ache
0c12834292 Fix PATH_MSGCAT
2.2 candidate
1996-11-04 02:28:31 +00:00
peter
417558ba05 Fill in some of the missing blanks for the tknvi and perl5 compile options.
Both options can be compiled if the appropriate ports are present.  These
are examples only and are commented out.
1996-11-03 21:32:37 +00:00
peter
53f00ccb78 The tcl/perl interpreter compile options were not really optional.
This is needed for building the boot crunch for 2.2 (It still needs a hook
so the release code can tell it when to build it without tcl etc).
1996-11-03 19:15:45 +00:00
markm
9484de227f Compile telnet from eBones instead of secure.
2.2 candidate.
1996-11-03 17:01:25 +00:00
steve
e0d5709e90 Add a .POSIX directive. When the first non-comment
line of a Makefile contains this directive, make(1)
will enter a POSIX 1003.2 compliant mode.

Submitted by: Joerg Wunsch <joerg@freebsd.org>
1996-11-03 03:29:57 +00:00
jkh
f83c06749f I haven't had a single contraversial commit all week, so what the
heck.  Watch through our hidden camera, ladies and gentlemen,
as this one-line addition to the syslog output generates hundreds
of thousands of lines of email in response, all from people
decrying the evils of electronic noise pollution! :-)

What this change does, simply speaking, is syslog it every time
someone changes their local password.  I need this at a local ISP to
tell whether people are reacting to expires in a timely fashion or
not.  To disable it, uncomment -DLOGGING in the Makefile.

If your users change their passwords so often as to fill your logfile,
then you may also have another administrative problem to deal with.
1996-11-03 03:11:57 +00:00
wosch
6d2caa45ee Match the reality. The man page was completely wrong. 1996-11-02 22:02:32 +00:00
jkh
268001fc69 Apply a long-forgotten change to make FTP_PASSIVE_MODE just that
much more universal (in FreeBSD, anyway) in taking some of the pain
out of firewalls.
1996-11-02 18:18:38 +00:00
wosch
5f439a090f remove duplicated usage string from commit rev 1.2
fix usage()
1996-11-02 15:28:57 +00:00
phk
ccfee521f5 bin/1942 curses problem in systat
truncate if too long for field.
2.2 candidate.
1996-11-02 15:15:40 +00:00
imp
bb3c2821a8 Reviewed by: Warner Losh <imp@village.org>
Submitted by:	Marc Slemko <marcs@znep.com>
Obtained from:	OpenBSD

Add -0 for reading the results of find -0.
1996-11-01 18:46:05 +00:00
peter
f3334b09a4 Yikes, I forgot to remove the -DSYSV_CURSES setting that I was using on
one of the machines I was testing on. (This was to get it to use the
sysv extensions in ncurses)
1996-11-01 08:34:51 +00:00
peter
06307f2449 Remove the old nvi-1.34, it has served us well but it's time has come..
(It was tagged immediately prior to removal with the tag "nvi_1_34_final")
1996-11-01 08:25:51 +00:00
peter
8f6032f508 Update to use nvi-1.79 sources 1996-11-01 08:16:24 +00:00
wosch
e2f97bd33e add forgotten variable $locate 1996-10-31 22:46:52 +00:00
phk
7c5a2b76a6 bin/1933: don't print negative % for huge files (80Mb) 1996-10-31 14:24:35 +00:00
peter
8a114aa2ad oops, uninitialised variable.. -v mode depended on stack contents.
Submitted by: Masafumi NAKANE <max@wide.ad.jp>, PR#1920
1996-10-29 18:45:20 +00:00
peter
18d85d85c1 Clean up some loose ends on my previous work in here.. 1996-10-29 05:08:21 +00:00
wollman
928320c3b6 Eliminate unnecessary include of <sys/mbuf.h>. 1996-10-28 19:08:13 +00:00
wollman
cd2ff97cee Eliminate unnecessary include of <sys/mbuf.h>. PCBs aren't stored in mbufs
any more.
1996-10-28 18:56:44 +00:00
joerg
2b0d357ce4 Don't dereference a free()ed pointer.
Closes PR bin/1909: 'last' coredumps if MALLOC_OPTIONS...
1996-10-28 07:47:34 +00:00
alex
b6d24b79f8 Typo: to --> too. Fixes PR#1907.
Pointed out by:	Pat Lashley <patl@Phoenix.Volant.ORG>
1996-10-27 19:18:06 +00:00
wosch
eac0f49e25 Do not store character 30. I made a test at my CS department
and at least one user use this char in a file name. Older
locate implementions core'd.
1996-10-27 19:04:27 +00:00
wosch
ca69b85774 $@ -> "$@", now ``mkdep "foo bar".c'' works.
Do not exit with status 0 if mkdep(1) cannot create output,
e.g. if .depend is not writable or the FS is readonly mounted.

Store arguments as comments for debugging purpose.
1996-10-27 15:53:18 +00:00
wosch
d7ad38d757 fix perl indention style 1996-10-27 15:50:40 +00:00
alex
20338edbdc Replace hardcoded length of "/dev/" with strlen(_PATH_DEV).
Pointed out by:	bde
1996-10-26 15:29:24 +00:00
alex
882b44482b sprintf --> snprintf
Use _PATH_DEV instead of hard coded "/dev/"

Obtained from:	OpenBSD, Jason Downs <downsj@OpenBSD.ORG>
1996-10-26 04:08:57 +00:00
bde
288ed20d53 Use the same format for the "expect N shift reduce conflicts" message
as in the one other place in /usr/src that prints such an "expect"
message (amd).
1996-10-25 15:50:17 +00:00
ache
c047af8017 Change recently added diagnostics to more descriptive 1996-10-25 00:13:14 +00:00
erich
41a87ae833 Teach file about:
1) our branded elf's
2) mpeg audio/video/system streams
3) compiled java classes
1996-10-24 15:49:51 +00:00
adam
f3ebc6792c old host:/filename syntax was broken
implement /filename syntax for completeness
1996-10-24 00:15:44 +00:00
ache
6042dbe6e1 Rename FNM_ICASE to FNM_CASEFOLD 1996-10-23 16:46:47 +00:00
ache
3b9a16cb50 Check for not defined / redefined chars now
Use backward compatible with ASCII collating tables
1996-10-23 15:00:18 +00:00
wpaul
0450c4ad17 Fix a core dump condition I discovered the other day (right
after I installed the last SNAP :). Because of the way the 'use NIS
or local?' logic is set up here, it was possible to force the use
of the NIS password changer even though the specified user didn't exist
in NIS (i.e. # passwd foo, where foo is a local-only user). In this
case, we fall intp yp_passwd() without the corresponding yp_password
structure being filled in, which leads to an NULL pointer dereference.

Also fixed the logic like I just did with chpass so that if the user
is both in NIS and the local password database, the program makes a
more sensible guess as to which one to use (if NIS is turned on in
/etc/master.passwd, then use NIS, else default to local).
1996-10-23 14:50:30 +00:00
wpaul
a989e7ab3a Add a flag to allow the 'use NIS or local?' logic to tell when NIS is
enabled in /etc/master.passwd & friends. This allows the 'USER_YP_AND_LOCAL'
case to make a more sensible guess (if NIS is enabled, default to NIS,
otherwise default to local -- this is better than defaulting to NIS
all the time).
1996-10-23 14:43:39 +00:00