Commit Graph

47 Commits

Author SHA1 Message Date
Doug Rabson
7fb2045a41 Some 64bit portability fixes. 1998-10-03 11:01:39 +00:00
David E. O'Brien
6d7cd12a6c 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
Bruce Evans
375557fcad Don't assume that time_t is long. 1998-06-29 17:06:00 +00:00
Steve Price
d79e6e1601 Fix a few typos.
PR:		7092
Submitted by:	Kauzo Horikawa <h-horik@yk.rim.or.jp>
1998-06-27 20:32:41 +00:00
Warner Losh
5dbf068b1e 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
Warner Losh
f34c49eb54 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 Eklund
bd41cae5e3 Remove special global tags support; we don't do it that way anymore. 1998-03-26 16:12:14 +00:00
Poul-Henning Kamp
d030d2d2ae 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 Eklund
a8b28da029 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
Warner Losh
daca865092 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
Warner Losh
29ae2e935b 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
Philippe Charnier
804d2dab87 Add prototypes, usage(). Use err(3). 1997-08-18 07:16:12 +00:00
Peter Wemm
65b3003d2d kill the undead 1997-07-13 14:26:00 +00:00
Bruce Evans
aac7bd5670 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
Bruce Evans
c44252b6e8 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
Masafumi Max NAKANE
465781bb5f Typo fix.
PR:		3869
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-06-14 19:45:00 +00:00
Jordan K. Hubbard
ae02ebaab4 Include types.h before libutil.h 1997-05-11 05:26:11 +00:00
Jordan K. Hubbard
deb9eaa91f Add support for GLOBAL style tags. 1997-04-13 06:47:02 +00:00
Bruce Evans
35c6f6c2cf Fixed DPADD. 1997-04-01 07:37:28 +00:00
Brian Somers
687d0cdeb3 Remove the syslog stuff, and allow various return values
in uu_lock().  Add uu_lockerr() for turning the results of
uu_lock into something printable.  Remove bogus section in man page
about race conditions allowing both processes to get the lock.
Include libutil.h and use uu_lock() correctly  where it should.

Suggested by:	ache@freebsd.org
1997-03-31 22:51:00 +00:00
Brian Somers
568b59b9df Move uucplock into libutil and create a manual page. 1997-03-30 12:12:20 +00:00
Wolfram Schneider
da1ff3cb8a Sort cross references. 1997-01-15 23:25:55 +00:00
Peter Wemm
184d3c70b7 Do not claim that tip is also called cu.
Submitted by: "Ph. Charnier" <charnier@xp11.frmug.org>, PR#1639
1996-09-19 05:14:30 +00:00
Bruce Evans
5b963fa12e Fixed DPADD. 1996-09-05 17:16:10 +00:00
Jordan K. Hubbard
cd9a2f5c28 Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
1996-06-24 04:26:21 +00:00
Mike Pritchard
edf0e5b3f8 Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.
1996-04-08 04:18:31 +00:00
Paul Traina
92b5c495f0 Here's a patch that fixes the problem with modem syncronization
problems with tip.  There are some hardwired timeouts that ignores the
delay that you can set in the modem configuration file.  The hard-wire
delay is to short if the modem has to switch major modes and reset
(ie going from fax to data mode with a reset).

Now my modem transistions from HylaFax control to tip control and ppp mode
without any problems.

Submitted by:	Douglas Ambrisko <ambrisko@tcs.com>
1996-03-05 19:11:49 +00:00
Andrey A. Chernov
1d537e96a3 Eliminate multiply uucplock.c copies 1996-03-04 10:46:29 +00:00
Peter Wemm
6065a0be11 This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
Peter Wemm
a5b996a7ec recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
Poul-Henning Kamp
dc22f7a98e Make tip recognize EOF in more cases. 1995-11-26 21:08:36 +00:00
Poul-Henning Kamp
b6078f2906 We wouldn't want to kill init if our parent died...
Spotted by:	davidg
1995-10-09 09:51:17 +00:00
Poul-Henning Kamp
662d0b8c51 Die if we get errors from the tty. 1995-10-06 15:32:36 +00:00
Andrey A. Chernov
feb1b301ec Rename PATH_LOCK to PATH_UUCPLOCK 1995-09-23 15:17:32 +00:00
Andrey A. Chernov
25883984a4 Use new _PATH_LOCK
Fix bug: pid was not assigned
1995-09-20 13:21:21 +00:00
Rodney W. Grimes
7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Rodney W. Grimes
1a4e9088d5 Fix nested comments for -Wcomment warnings. 1995-05-09 13:13:29 +00:00
Jordan K. Hubbard
c35cf316d8 Greatly clean up the Makefiles and add a Makefile.inc to more obviously
advertise tip's choice of location and perms.
1995-04-01 09:14:37 +00:00
Jordan K. Hubbard
0f976d1e04 I must have been very sleepy last night, sigh..
1. Nuke out the aculib files that crept in somehow by mistake.
2. Fix the ${.CURDIR} path so that this stuff actually compiles.
   It actually compiled for me before the commit, but I must have had
   something short-cutting the bug.
1995-03-31 21:04:48 +00:00
Jordan K. Hubbard
18cc36fb15 Tom Gray's new tip changes to support a modem capabilities database and
fixes to many assorted bugs and misfeatures.
Submitted by:	Tom Gray - DCA <dcasba@rain.org>
1995-03-31 11:47:39 +00:00
Andrey A. Chernov
11c5d06117 Use ASCII lock instead of BINARY one. 1994-12-19 01:57:17 +00:00
Andrey A. Chernov
67e5e9bc63 Use proper LOCKDIR name 1994-12-19 01:07:59 +00:00
Andrey A. Chernov
6d414f9844 Don't install as 'cu', it breaks Taylor 'cu' installed in the same
directory. Taylor 'cu' is much more powerful than this cheap 'tip'
1994-12-04 22:20:42 +00:00
Poul-Henning Kamp
96a1d4decb I finally had enough of tip not recognizing carrier loss. now it does. 1994-09-29 02:22:08 +00:00
Poul-Henning Kamp
19b815a645 If you used tip to start SLIP, tip would fail to write to the tty
after slattach was started.  Now tip knows to die when it gets ENODEV...
1994-09-25 03:59:03 +00:00
Andreas Schulz
b54c304080 Reviewed by:
Submitted by:
Add back the baud rates above 19200, as we have them already under 1.1.x.
1994-09-04 16:52:12 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00