Commit Graph

82 Commits

Author SHA1 Message Date
markm
35b3fd6802 Merge from import. The import was done ages ago, and this diff has been
carried since then.
2002-07-19 14:10:35 +00:00
ru
1713155fc2 Make dirty, rotten hack really work. As of rev. 1.16, ${BINDIR}
is only defined after <bsd.prog.mk> is included, and .if make(1)
conditionals are evaluted on the first pass.

Spotted by:	Michael Bretterklieber <mbretter@jawa.at>
2002-07-12 14:49:25 +00:00
trhodes
fa6c7efe3f More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
charnier
ad8a79e6a5 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ru
1ae9195f9d Don't attempt to chflags(1) non-existent executable. 2002-04-17 12:15:02 +00:00
imp
0b20191705 remove __P 2002-03-22 01:42:45 +00:00
markm
ea00e48044 Fix merge conflicts, and because this still has a zillion warnings,
protect the build with a WARNS=2.

Fix the build.
2001-12-20 14:25:46 +00:00
markm
3551cbb12e Bring files back from the dead prior to remote commit to fix import
conflicts.
2001-12-20 13:40:48 +00:00
ru
ce68efb1de ${BINDIR} already has the leading slash. 2001-11-27 09:54:02 +00:00
markm
1ab9cf7b4b After some CVS surgery to remove an unwise commit, restore some
post-UUCP-removal stuff:

1) Link cu(1) to tip(1).
2) Force removal of system immutable bit. (Was needed by UUCP's
   insecure cu(1).
2001-11-26 23:13:33 +00:00
ru
ad71f55b36 Fixed some of style bugs. 2001-09-12 10:04:42 +00:00
dillon
838c380fcf Make sure that all non-root-owned binaries in standard system
paths are chflaged 'schg' to prevent exploit vectors when run
by cron, by a root user, or by a user other then the one owning the
binary.  This applies to most of the uucp binaries, cu, tip, and
man (man was already installed properly).

MFC will occur when approved.
2001-09-09 04:54:10 +00:00
ru
80f060f0cf mdoc(7) police: protect trailing full stops of abbreviations
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
sheldonh
9bfb9eedcd Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.

Submitted by:   David Hill <david@phobia.ms>
2001-07-26 11:02:39 +00:00
dd
911ca14c87 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ru
36f138439b mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
brian
8636b161b3 Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
phk
32050df423 If the user exists abruptly, tip's "tipout" child can hang around
forever. Since the lock file doesn't get cleaned up, this prevents
other users from accessing the target device.

(phk adds: Man, this has been bugging me for YEARS!)

PR:		12528
Submitted by:	Craig Leres leres@ee.lbl.gov
MFC after:	1 week
2001-05-24 09:27:02 +00:00
ru
89596e4538 MAN[1-9] -> MAN. 2001-03-27 10:52:19 +00:00
ru
8a6f8b5fe4 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
ru
e6cfc0711d Prepare for mdoc(7)NG. 2000-12-19 16:00:12 +00:00
phantom
9417b1b80a Fix typo reported by Rich Morin <rdm@cfcl.com> on -doc mailing list.
Correct .Xr macro usage.
Also fix few more typos while I'm here.
2000-12-14 16:27:11 +00:00
ru
0d1334ca0c mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
ru
a6f5d950d8 Avoid use of direct troff requests in mdoc(7) manual pages. 2000-11-10 17:46:15 +00:00
imp
4721d7ef43 #include <errno.h> where needed. Kill extern int errno;.
Minor warnings in tip corrected.
2000-04-14 06:39:19 +00:00
bsd
afe650499c Resurrect the 'cdelay' and 'ldelay' features of /usr/bin/tip. 2000-03-15 15:01:04 +00:00
sheldonh
49c4458c80 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
bsd
0cb88de5b6 Fix a 'tip' core dump caused by a null pointer dereference when
sending a file to the remote system.

PR:		bin/15660
Reviewed by:	jkh
Approved by:	jkh
2000-02-22 02:01:17 +00:00
peter
9751ab22ae Fix warning: return type of main' is not int' 1999-09-15 01:58:44 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
nik
6578739ddb Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:24:20 +00:00
dt
9974523119 Rename a function to avoid conflict with the new syscall 'pwrite'. 1999-04-04 21:47:11 +00:00
dfr
f91b3d0db4 Some 64bit portability fixes. 1998-10-03 11:01:39 +00:00
obrien
14d606547b Makefile.inc was conditionally setting vars already set by bsd.own.mk
which is read before tip's own Makefile is.  Move those varables here
where they will do some good.
1998-09-21 08:41:35 +00:00
bde
122886a1e0 Don't assume that time_t is long. 1998-06-29 17:06:00 +00:00
steve
1f377d980c Fix a few typos.
PR:		7092
Submitted by:	Kauzo Horikawa <h-horik@yk.rim.or.jp>
1998-06-27 20:32:41 +00:00
imp
04f329cb39 sizeof(foo - 1) isn't the same as sizeof(foo) - 1.
Pointed out by: Theo De Raadt.
1998-06-09 14:51:05 +00:00
imp
9a6732bd4e o Use snprintf rather than sprintf.
o Revert gid to caller before a shell so we can run setgid.
o minor style nits to make bruce happy :-)
o use strncpy correctly.
1998-06-09 04:28:05 +00:00
eivind
0954aa00b4 Remove special global tags support; we don't do it that way anymore. 1998-03-26 16:12:14 +00:00
phk
d8ac409160 Many places in the code NULL is used in integer context, where
plain 0 should be used.  This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.

PR:		2752
Submitted by:	Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
eivind
0e114b0322 Removed a buffer overflow in args().
While I'm here, fix a bug with 'register' in conjunction with setjmp(),
staticize and do some -Wall cleaning.
1997-08-26 10:25:19 +00:00
imp
4760384ee3 Change from using sys/param.h and MAXPATHLEN to using limits.h and PATH_MAX
to avoid the NOFILE problem.  Back out NOFILE kludge.  Fix unexploitable
buffer overflow in tipout.c.
Reviewed by:	millert@openbsd.org (tipout.c)
Submitted by:	millert@openbsd.org (rest of idea)
1997-08-25 05:02:11 +00:00
imp
7623afeb40 Fix buffer overflow. prompt didn't get a size for its buffer,
so it could overflow it.  Also made some filenames MAXPATHLEN long rather
than 80 long.
1997-08-22 22:14:16 +00:00
charnier
6fbe0aac6d Add prototypes, usage(). Use err(3). 1997-08-18 07:16:12 +00:00
peter
486333fcfd kill the undead 1997-07-13 14:26:00 +00:00
bde
08b8316452 This commit was generated by cvs2svn to compensate for changes in r27241,
which included commits to RCS files with non-trunk default branches.
1997-07-06 06:54:14 +00:00
bde
4d7f45e259 Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,
pascal and vmstat.sparc.  All changed files on the vendor branch should
already have been imported.
1997-07-06 06:54:14 +00:00
max
54ca0a3181 Typo fix.
PR:		3869
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-06-14 19:45:00 +00:00
jkh
d6965698fb Include types.h before libutil.h 1997-05-11 05:26:11 +00:00
jkh
fabf2fcbdd Add support for GLOBAL style tags. 1997-04-13 06:47:02 +00:00