Commit Graph

1475 Commits

Author SHA1 Message Date
joerg
a1f8d0ff64 Merge ee version 1.3 from the vendor branch. Clean up files we've got
in a different location.  (Sigh, the initial import gratuitously
changed the directory structure here, rendering the vendor branch a
little useless.)

Note: the French message catalog needs updating.  By now, i've simply
appended the English messages.  NB: French message # 123 has been
wrong, please correct whoever is going to deal with this.
1996-12-29 10:54:36 +00:00
peter
ab8678138f Enable idlok() in both windows. This is actually a no-op for libcurses
(which doesn't use the setting at all), but when linking with
recent versions of libncurses, ncurses screws up without it for some reason
(presumably a ncurses bug).
1996-12-28 20:44:58 +00:00
joerg
16602d1a42 This commit was generated by cvs2svn to compensate for changes in r20983,
which included commits to RCS files with non-trunk default branches.
1996-12-28 20:31:06 +00:00
joerg
49d2a2da5a Update from the author, just onto the vendor-branch by now.
Submitted by:	h_mahon@fc.hp.com (Hugh Mahon)
1996-12-28 20:31:06 +00:00
wosch
0426c0af88 comma typos 1996-12-23 23:09:55 +00:00
joerg
b4b3d5f49e Fix a logico that sneaked into the manpath handling.
Turn off error messages from locate(1), we can't do very much about
its database not being ok anyway at this time.

Closes PR # bin/2183: whereis returns environ...
1996-12-23 18:55:32 +00:00
jkh
ad3a46d18b Allow mail(1) to look for multiple mail.rc files.
Submitted-By: Lyndon Nerenberg VE7TCP <lyndon@orthanc.com>
1996-12-21 22:53:58 +00:00
mpp
2aa8829be4 Replace a bunch of tabs by spaces, since they
should not be used in man page text.
1996-12-21 20:03:02 +00:00
mpp
29017ebe0b Grammar/spelling/style fixes.
2.2 candidate.
1996-12-21 19:57:14 +00:00
joerg
581f3e28c3 Move the check for ASCIIness earlier. This avoids the following
misdetection:

j@uriah 307% file X.hga
X.hga: 80386 COFF executable not stripped
j@uriah 308% strings X.hga | head -3
~f&`i
.text
.data
j@uriah 309% strings X.hga | file -
standard input:              assembler program text

New version:

j@uriah 310% strings X.hga | ./file -
standard input:              International language text

Reviewed by:	christos@deshaw.com (Christos Zoulas)
1996-12-20 22:19:18 +00:00
imp
2e50250737 Fix problem in ftp and case mapping mode where the converted string wasn't
terminated properly.  Fix is from the PR and works for the test cases I
threw at it.  Should be safe and desirable for back porting to 2.2 or
earlier if there are people still comitting to -stable.

Submitted by:	Marc Slemko <marcs@znep.com>
Closes PR:	1864
1996-12-17 17:59:40 +00:00
ache
d6af96c622 Add \' to valid escapes list to be compatible with printf
2.2 candidate
1996-12-15 23:55:03 +00:00
alex
4310c7fab2 Typo fix.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1996-12-15 15:14:26 +00:00
mpp
a3165f8e3b Correct a typo.
Closes PR# 2217.
1996-12-15 07:34:07 +00:00
steve
f06b28eb4a Upgrade to version 2.5.4 of flex.
Inspired by: NetBSD/OpenBSD (I can't remember who I saw do it
             first, so I'll give them both some inspiration
             points. :)
1996-12-14 05:48:48 +00:00
steve
aff0872665 -Wall cleaning. 1996-12-14 05:32:27 +00:00
wollman
2c02b8c04a Learn to follow the new interface address lists. 1996-12-13 21:29:59 +00:00
wosch
4ad813db29 Fix uninitialized memory read for case insensitive search. Harmless.
submitted by: purify
1996-12-13 20:28:24 +00:00
bde
70b4f8641f Restored installation of /etc/magic. It's now a symlink instead of a
file (like /etc/termcap).  /usr/src/etc/Makefile depends on there
being an etc-magic install rule here, and who-knows-what depends on
`magic' being in /etc.

Fixed some style bugs - don't use -c for installing files in the obj
directory...
1996-12-13 11:49:16 +00:00
wollman
2bf6d9001a Understand queue-ized ifnet structures. 1996-12-11 20:39:43 +00:00
joerg
2f3249e305 Add another matching algorithhm to do heuristics for international
language text files.

Should finally close PR # bin/1925: file does not consider cyrillic
text..., though i've never got any response from the originator about
my suggestion.

While i was at it, also move out the `magic' file to /usr/share/misc,
there's nothing that magic with this file to justify its life under
/etc.
1996-12-11 14:09:12 +00:00
dyson
b0bde11dba When mmap is used, do an madvise(MADV_SEQUENTIAL) to make things
go much more quickly when file input is really done.  Of course, the
fully cached case will make no difference.
1996-12-11 05:20:20 +00:00
peter
269f480296 Don't dup the network pipe to stderr, it prevents ssh from asking for a
password.

Obtained from: ssh FAQ, Thomas.Koenig@ciw.uni-karlsruhe.de
1996-12-10 23:41:27 +00:00
wollman
d3ecee07b3 Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
do it themselves.  (Some of these programs actually depended on this
beyond compiling the definition of struct ifinfo!)  Also fix up some
other #include messes while we're at it.
1996-12-10 17:11:53 +00:00
mpp
5b30b8bc87 Minor formatting fixes.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR # 2134.
1996-12-09 07:26:04 +00:00
wosch
01588772de Add manual page symlinks
trace.1 -> ktrace.1 and
	truss.1 -> ktrace.1
for SunOS emigrants.
1996-12-08 16:56:40 +00:00
ache
b0ce21fe0d Link Dutch catalog with nl_NL instead of da_DK 1996-12-08 14:05:08 +00:00
ache
17cc02ba93 Fix my error from previous commit with mixing rwhod protocol
and utmp sizes.
Replace hardcoded constants by sizeofs or symbolic constants
1996-12-05 20:19:33 +00:00
ache
f204d1bbee Remove one space to produce the same output alignment
like in who, rwho, w, etc.
1996-12-05 17:56:05 +00:00
ache
adcb17c3ed Adjust line to not overflow 80 cols (result of recent utmp changes) 1996-12-05 17:33:46 +00:00
ache
48670a95db Use UT_* contstants when possible instead of harcoded 8
2.2 candidate
1996-12-05 17:12:51 +00:00
ache
25af7e1053 Increase username field to reflect utmp changes 1996-12-05 17:00:16 +00:00
mpp
9f9a264468 Remove a self referential xref, and add an xref for modload.
Closes PR# 2104.
1996-12-04 00:00:20 +00:00
fenner
a9efebe64e Display multicast addresses if the "a" flag is used in combination
with "-i".  This was already in the man page but was not implemented.

Obtained from:	Multicast release 3.5
1996-12-02 06:38:30 +00:00
bde
8c92e07907 Made the synopsis in the man page conform to the style guide.
Made the usage message conform to the style guide.

Don't use the implementation variable `__progname'.
1996-11-30 16:12:46 +00:00
peter
ab076d3a60 make the Usage string match reality
Submitted by:  faried nawaz <fn@uidaho.edu>, PR#2075
1996-11-22 13:58:03 +00:00
ache
1860dabc4e Add ru_RU as alias to ru_SU 1996-11-21 10:13:25 +00:00
fenner
3e3088cdcd Fix arg parsing. kdump used to allow a single argument, which it
silently ignored.
1996-11-18 19:37:52 +00:00
ache
dd2cd30e2e Detect GUS patches now 1996-11-17 11:03:07 +00:00
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
scrappy
326b6b4bd8 Fix description of -cli option so that it comes out as -cli0.5 instead of
-cli0 -.5

Submitted by:	 Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>
1996-10-23 07:02:48 +00:00
scrappy
37eda0b07d Add a 'depth (-d#)' flag to du
patched (context diff), compiled (w/ -Wall) and tested

Submitted by:	John-Mark Gurney <jmg@nike.efn.org>
1996-10-23 06:53:57 +00:00
scrappy
f98273b79e Description:
Machine come and go...
        Little patch removes lists down for over 4 days from the list.
        (If you haven't noticed they are down in that period, you should
         turn them off!)

Closes: PR#bin/1361

Submitted by:	xaa@stack.urc.tue.nl
1996-10-23 04:23:36 +00:00
ache
b2837c8a4c Use same primary / different secondary order for umlauts and digits parts 1996-10-22 23:27:56 +00:00
joerg
c91e5c56fd Cleanup. Boldfaced dashes didn't print at all, also corrected a few
other mdoc(5) usage errors.

Pointed out by:	kuku@physik.rwth-aachen.de (Chris Kukulies)
1996-10-22 21:56:11 +00:00
joerg
2d7b0aca1c The neverending story... vgrind.
For definitions without an "nc" entry, some parts have now been
mis-detected as `non-comment'.  Avoid this by not converting the
noregexp in case the "nc" capability has not been found.  I begin to
wonder why things like missing "ab"/"ae"'s do work at all...

Detected by:	nate
1996-10-22 16:18:17 +00:00
scrappy
e216bc2f81 Document f2c's -o option
Closes: PR#docs/1272

Submitted by: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
1996-10-22 05:36:57 +00:00
scrappy
cc11d2ef51 Fixes:
When you ask pr to use form feeds at the end of pages and specify a page
length and tell pr to not put the fancy headers and footers on each
pages, then pr will not separate the pages with a form feed.

Closes PR: bin/1237

Submitted by: Warner Losh <imp@village.org>
1996-10-22 05:02:01 +00:00
wpaul
eea42f60d4 *blush* Whoops: got the format strings wrong. 1996-10-22 03:43:34 +00:00
wpaul
36f3371a8f Part 2 of fix for PR #1519. The problem here is similar to what
was going on in pwd_mkdb, except here we also have to deal with
the pw_change and pw_expire fields.
1996-10-22 03:27:12 +00:00
wpaul
341ed58244 Modify the 'couldn't create udp handle' message so it tell you
the name of the host that couldn't be connected to. This will hopefully
make it easier to diagnose problems with certain NIS configuration
problems.
1996-10-22 00:41:55 +00:00
wosch
ff1e30c98b New options for uudecode
-p Decode file and write output to standard output.
	-c Decode more than one uuencode'd file from file if possible.
1996-10-21 22:02:30 +00:00
phk
edf93e27ef unset TZ from the environment so the timestamp gets the system default,
which is what syslogd presumably uses too.  Notice that the "protocol"
is bogus in not defining the timezone. "protocol" because it hardly
deserves the name :-)

closes bin/1739

Reported by:	Stefan Zehl <sec@wg.camelot.de>
1996-10-21 19:51:34 +00:00
joerg
4256f5443c Correct the SYNOPSIS section of the man page to add the -p option. 1996-10-21 18:04:42 +00:00
phk
d225820440 Don't access stuff we have realloc()'ed using the old pointer.
This is a sample of a new class of malloc usage errors that the
Junk option to phkmalloc will expose.

Found by: phkmalloc.
1996-10-21 08:51:58 +00:00
wosch
22623bf1c5 Better case insensitve search support for pattern with meta chars.
In some rare cases this does not work proper before flag FNM_ICASE was
added to fnmatch(3).
1996-10-20 16:54:51 +00:00
sos
57e112b256 Added brandelf to SUBDIR. 1996-10-19 09:08:41 +00:00
joerg
49f79cab93 Slightly improve the C and C++ support. Allow for function return
types being on the same line as the function name, this finally closes
PR # bin/1785.  Also allow :: and ~ as part of the function name, for
C++.

Still, C++ operator overloading will not be recognized as a valid
function name.  Fixing this would require a major overhaul of the \p
recognition parser.
1996-10-18 17:23:33 +00:00
joerg
e9d8333cac Some cleanup:
. correct a typo in regexp.c,
. implement a new "nc" (non-comment) feature to describe exceptions from
  the comment detection; there were problems in Perl with the $# operator
  that could not be solved by any other means,
. prevent blocklevel from becoming negative (due to earlier misdetected
  sequences), this is probably a workaround for the problem described
  in PR # bin/1785,
. update the Perl description to use the "nc" feature,
. update the man page for the "nc" and the undocumented "ab"/"ae"
  features.
1996-10-18 14:13:18 +00:00
jmz
1beee0a9eb The -q option does not require a list of elements: the command 'ar q foo.a'
is perfectly valid and eventually creates an empty archive.
This is consistent with OSF1 V3.x, SunOS 4.x, ULTRIX 4.x and probably others.
1996-10-17 22:13:36 +00:00
ache
813e0456c3 Add -D_SKEY_INTERNAL to pick up non-API functions 1996-10-17 15:30:21 +00:00
ache
3b80709625 Add -D_SKEY_INTERNAL to pick up non-API skey functions 1996-10-17 15:25:12 +00:00
ache
aa5a205bac Fix diagnostic: skey->key, we have key command 1996-10-17 12:06:05 +00:00
bde
467c7d29da Use a (signed) int32_t counter instead of an `unsigned int' counter
for the GPROF4 case.  This allows a simpler method to be used for
non-statistical profiling (it allows overhead adjustments to be
subtracted from one counter without harm if that counter goes
negative; otherwise the adjustment would have to be distributed).

32 bit counters were already too small for GPROF4 with a 200MHz
clock.  int64_t counters should be used.
1996-10-16 21:02:49 +00:00
sos
cb13266b14 Utility to "brand" ELF binaries.
Man page to come...
For now use: <brandelf -t Linux linuxbin> to brand, and just
<brandelf> to verify branding on a ELF file. FreeBSD native is
set with <brandelf -t FreeBSD freebsdbin>.
1996-10-16 18:16:22 +00:00
ache
f5b4e8c2ab Simplify and improve parser.
Clarify manpage.
1996-10-16 03:12:22 +00:00
ache
09ecea6256 Save half of LC_COLLATE space
ASCIIfy data files, use RFC1345 symbolic names instead of hex codes
Improve parser and manpage
1996-10-15 22:05:18 +00:00
joerg
901db635de Wow!, i finally found a usable vgrind definition for Perl. 1996-10-15 18:58:45 +00:00
wosch
1edf24275a 8-Bit character support.
Old locate(1) programs still works with the new database format, print
some garbage for 8 bit characters, but don't core (maybe except char 30).

7-Bit Puritan should not notice any difference. Same speed,
Same database size if the database contain only ASCII characters.

Reviewed by: ache
1996-10-13 01:44:43 +00:00
wosch
0952f69287 export variable TMPDIR (which maybe set, but not exported in /etc/locate.rc) 1996-10-12 20:29:25 +00:00
jkh
8a4edeb5fd Close PR#1781 - time returns with EXIT_SUCCESS on some failures
Submitted-By: Tor Egge <Tor.Egge@idt.ntnu.no>
1996-10-12 18:41:26 +00:00
steve
67bda81def Remove extraneous comment, fix second-level tabs (one
tab and four spaces), and return error message in *err
instead of calling Parse_Error.

Suggested by: Bruce Evans <bde@zeta.org.au>
1996-10-12 02:15:30 +00:00
steve
2d340b514c Removed extra $Id$ string. 1996-10-11 04:15:57 +00:00
steve
a63d5c3c9f Reinstate '!=' fix by Bruce Evans. The original commit message from
parse.c(1.9) was:

revision 1.9
date: 1996/09/12 03:03:25;  author: bde;  state: Exp;  lines: +7 -6
Fixed handling of `!=' assignment.  Don't warn if the shell's output is
null, but warn if there was an error reading it.

Suggested by: Bruce Evans <bde@zeta.org.au>
1996-10-11 03:55:29 +00:00
wollman
8beec6c65d Remove reference to oobsolete RTF_MASK flag (soon to be removed). 1996-10-09 18:19:07 +00:00
wosch
f7abebc6e2 Fix searching for shell quoting characters. I guess it was
broken since locate exists.

This works now

$ locate '*\['
$ locate '*i386-\**'
$ locate '*[C\[]'
1996-10-09 00:33:34 +00:00
steve
838a7cdccb O' to be bitten by CVS. Cleanup after import
of Christos' version of make(1) and add Id's.

Set straight by: Bruce Evans and Peter Wemm :)
1996-10-08 04:07:59 +00:00
joerg
94ef229c15 Export $TERM only if it has been set in our environment.
Detected by: Amancio Hasty
1996-10-07 10:00:58 +00:00
steve
d687df7a01 This commit was generated by cvs2svn to compensate for changes in r18764,
which included commits to RCS files with non-trunk default branches.
1996-10-06 16:45:32 +00:00
steve
5c6ac2e68c Import Christos Zoulas' version of NetBSD's make onto the
vendor branch for reference.

Obtained from: Christos Zoulas <christos@netbsd.org>
1996-10-06 16:45:32 +00:00
steve
a761e29d9a Clarify the rule used to determine the object
directory location.
1996-10-06 16:19:08 +00:00
peter
4370a5a248 Import the 4.4BSD-Lite2 version of make onto the vendor branch
"for reference".  This doesn't change anything since all files
have been touched.
1996-10-06 15:57:15 +00:00
peter
21bea375d1 This commit was generated by cvs2svn to compensate for changes in r18756,
which included commits to RCS files with non-trunk default branches.
1996-10-06 15:57:15 +00:00
steve
d4df49b545 Correct problem with traversing into PSD.doc directory,
these files are actually installed/built as part of
src/share/doc/psd/12.make.  Oops. :)

Pointed out by:	Peter Wemm and Bruce Evans
1996-10-06 13:02:43 +00:00
jkh
759a48eac3 Correct merge bogon: You want to descend into PSD.doc for both `all' and
`install' cases or there's never anything made to install, and you blow
up in the install. :-)
1996-10-06 12:43:14 +00:00
steve
9ff459e9a2 Remove annoying -Wall warning. 1996-10-06 02:40:39 +00:00
cvs2svn
7bee03ad1d This commit was manufactured by cvs2svn to create branch 'CHRISTOS'. 1996-10-06 02:35:39 +00:00
steve
49662693d9 Merge in NetBSD's changes to make(1). Changes include:
- Add the .PHONY, .PARALLEL, and .WAIT directives
	- Added the -B and -m commandline flags
	- misc. man page cleanups
	- numerous job-related enhancements
	- removed unused header file (bit.h)
	- add util.c for functions not found in other envs.
	- and a few coordinated whitespace changes

Special thanks to Christos Zoulas <christos@netbsd.org>
for help in the merge.  A 'diff -ur' between Net and
FreeBSD now only contains sccsid-related diffs. :)

Obtained from: NetBSD, christos@netbsd.org, and me
1996-10-06 02:35:38 +00:00
jkh
336dd89b31 Honor the MAIL environment variable.
Submitted-By: Dan Cross <cross@math.psu.edu>
1996-10-06 01:55:32 +00:00
jkh
588cbc5059 Honor the MAIL environment variable, if set.
Submitted-by: Dan Cross <cross@math.psu.edu>
1996-10-06 01:54:22 +00:00
jmz
6772418485 The -h flag implies ftp = 1. 1996-10-06 00:44:24 +00:00
peter
1fb5e546cf With -delete, don't complain about non-empty directories. Otherwise
"cd /tmp; find . -mtime +7 -delete" is excessively noisy.
1996-10-05 23:47:07 +00:00
jfieber
92313ed7f0 Some new options for the FreeBSD web pages. These are for the moment
not officially documented and are subject to change.

 -hdr and -ftr
	Specify files to insert at the top and bottom of every
	page.  This is similar in result to the existing -ssi
	option but everything happens at build time.  If the
	string @@UPDATED@@ appears in either file it will be
	replaced with "Updated" followed by the current date.

-white
	Make the pages black text on white background.
1996-10-05 23:38:55 +00:00
wosch
000fb64288 delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
peter
a066ea9800 For the -delete option, emulate the behavior of "rm -f" when dealing with
user-immutable files.

Requested by: ache
1996-10-05 18:21:05 +00:00
ache
89c99ff0c6 Fix Moscow timezone rule 1996-10-05 09:03:37 +00:00
peter
8b748f9115 Fix the previous commit. The second of the 8-character columns was
a duplicate of the first column of 8...
1996-10-04 23:29:38 +00:00
peter
342c1e0794 Implement a -delete option to find. The code is extremely paranoid and
goes to a fair degree of trouble to enable something like this to
be safe:  cd /tmp && find . -mtime +7 -delete

It removes both files and directories.  It does not attempt to remove
immutable files (an earlier version I showed to a few people did a chflags
and tried to blow away even immutable files.  Too risky..)

It is thought to be safe because it forces the fts(3) driven descent to
only do "minimal risk" stuff.  specifically, -follow is disabled, it does
checking to see that it chdir'ed to the directory it thought it was
going to, it will *not* pass a pathname with a '/' character in it to
unlink(), so it should be totally immune to symlink tree races.  If it runs
into something "fishy", it bails out rather than blunder ahead.. It's better
to do that if somebody is trying to compromise security rather than risk
giving them an opportunity.  Since the unlink()/rmdir() is being called
from within the current working directory during the tree descent, there
are no fork/exec overheads or races.

As a side effect of this paranoia, you cannot do a
"find /somewhere/dir -delete", as the last argument to rmdir() is
"/somewhere/dir", and the checking won't allow it.  Besides, one would use
rm -rf for that case anyway. :-)

Reviewed by: pst (some time ago, but I've removed the immutable file
deletion code that he complained about since he last saw it)
1996-10-04 12:54:07 +00:00
jfieber
ae0689930a When starting HTML generation, remove any pre-existing link file. 1996-10-01 16:23:39 +00:00
peter
dd85f245b6 When used as a shell builtin, this program decoded a subset of arguments
known to printf(3) and then used printf() to format it... The only
problem what the #define printf out1fmt.  The code was behaving differently
when run as a shell builtin since out1fmt() isn't printf(3).

Simple hack.  Print to a buffer and fputs (also #defined for sh) the
result.  This should fix the printf builtin problem in PR#1673, rather
than leaving the call commented out.  (printf.o was being statically linked
in anyway, we might as well use it)
1996-10-01 04:56:59 +00:00
imp
ffedaf5fae Sync usage line to man page, per style(9).
Pointed out by: Bruce Evans <bde@zeta.org.au>
1996-10-01 03:59:57 +00:00