1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
Commit Graph

20 Commits

Author SHA1 Message Date
mmcc
cd9ca5b765 Modernize allocation by:
* removing unneeded casts of void* return values
 * replacing varied and creative error messages with the allocation
   function's name
 * replacing errx() with err() so that the errno string is reported

ok beck@, jung@, millert@
2015-10-16 17:56:07 +00:00
okan
085f113bcb ctype and other sign extension fixes.
with deraadt and millert, ok millert
2014-01-17 18:42:30 +00:00
deraadt
043fbe51c1 rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
2009-10-27 23:59:19 +00:00
martynas
f10129aa66 - chraise can be replaced with toupper; no need to check for islower
- remove quite some code, use strcasestr instead of reimplementing
it each time
- use strncasecmp, instead of comparing through each character
"looks fine" millert@
2008-07-15 19:23:26 +00:00
millert
49f652be8e Fix off-by-one bug in readtty() and don't assume BUFSIZ == 1024.
Based on a patch from Ulf Harnhammar.
2005-07-11 14:08:23 +00:00
deraadt
ecebcaff99 avoid aliasing against libc symbols 2004-09-15 22:21:40 +00:00
tedu
3f32cc62a7 better realloc. ok deraadt jose 2003-10-13 00:46:08 +00:00
millert
f75387cb26 Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.
2003-06-03 02:56:05 +00:00
millert
d984daca2d o kill strcpy()
o check return values of malloc and friends
o use strdup() when sensible
2001-11-21 20:41:55 +00:00
millert
4a9caef215 o ANSIfy
o Style nits
o Use const to silent stupid -Wall warnings
o strnc{py,at} -> strlc{py,at}
o Use strpbrk() instead of homegrown anyof()
o Use NULL instead of #defines with 0 cast to a pointer
This still could use a proper audit
2001-11-21 15:26:39 +00:00
millert
ca8b07b07c Changes from Don Beusee:
o escape From line with a leading '>' when needed
o only print To: address and Subject lines if actually present
o new variable 'allnet' to treat user@foo and user@bar as the same "user"
o folders command now takes an optional argument like ls.
o new "pipe" (|) command to pipe the message through an arbitrary command
o make header display format the same as SunOS 4.1.3 /usr/ucb/mail
o tilde commands work regardless of interactive mode.
o fix "read: Interrupted system call" error by retrying if EINTR
o expanded help file
Changes by me:
o read the help file via the PAGER as it is now more than 24 lines long
2001-01-16 05:36:08 +00:00
millert
36999bed05 NetBSD changes (mostly comsmetic):
replace panic() with calls to err()/errx()
    use S_IS* instead of doing by hand with S_IF*.
    Use TIMESPEC_TO_TIMEVAL() and gettimeofday instead of time(2)
    Use _POSIX_VDISABLE, not 0
    Kill register
1997-11-14 00:23:41 +00:00
millert
a0c61372fc Fix a problem in skin() that was introduced with the buffer oflow
fix.  Could end up realloc'ing the wrong thing.
1997-08-04 17:30:22 +00:00
millert
552ba09c36 Document an assumption and kill a static buffer. 1997-07-31 02:36:32 +00:00
millert
c318c72bec NOSTR -> NULL
Use sigsetjmp/siglongjmp instead of sigjmp/longjmp for portability.
1997-07-14 00:24:24 +00:00
millert
db59c1a606 Merge in NetBSD and 4.4BSD-lite2 changes as well as some of my own.
- handle long lines safely (from NetBSD)
 - use puts/fputs and putchar/putc when it makes sense
 - use err/errx and warn/warnx when it makes sense
 - make return() and sizeof() style consisten
 - some more buffer safety
1997-07-13 21:21:08 +00:00
deraadt
c32a32501b overflows abound 1997-05-30 08:51:32 +00:00
millert
180acc8f08 r?index -> strr?chr 1997-01-17 07:10:42 +00:00
deraadt
7eb34045c5 from christos;
- Fix PR/105: Implement dot locking protocol and check return value of flock.
- Fix PR/2247: Don't call unknown users "ubluit". Issue an error message.
- Fix/add prototypes.
- Fix warnings.
- Use POSIX signal mask calls.
1996-06-11 12:53:31 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00