Peter Wemm
e5493ddb0f
This commit was generated by cvs2svn to compensate for changes in r23658,
...
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:29:42 +00:00
Peter Wemm
662909a780
Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch
1997-03-11 11:29:42 +00:00
Peter Wemm
0b7ae03c1a
Import CSRG 4.4BSD-Lite2 includes onto vendor branch
1997-03-11 11:11:37 +00:00
Guido van Rooij
1ab96f9344
Check for overflow of FD_SET
1997-03-10 19:32:46 +00:00
Bill Paul
09e8462819
Fix brain-o in SunOS passwd.adjunct stuff: !strstr(s, "##") is a) bad
...
style and b) the wrong logic. Should be strstr(s, "##") != NULL. (Note
that the passwd.adjunct stuff has not been merged into 2.2 so this bug
is not in that branch.)
1997-03-10 16:47:19 +00:00
Stephen McKay
ac225cf76d
Clarified the behaviour of dup2(fd1,fd2) when fd1==fd2 and when fd1 is invalid.
...
Safe for 2.2!
1997-03-09 13:16:48 +00:00
Mike Pritchard
2d3868141d
The first argument to fts_set was wrong. Part of PR# 2917.
1997-03-09 00:43:49 +00:00
Mike Pritchard
e2493e0fc3
Pause() is made obsolete by sigsuspend(2), not sigpause(3).
...
Part of PR# 2917.
1997-03-09 00:42:46 +00:00
Wolfram Schneider
4ccb26e49a
Allow comments in group database.
...
The character `#' introduces a comment. Leading spaces and tabs are
ignored: '^[ \t]*#.*\n$'
Count an empty line - only spaces, tabs or newline - also as a comment.
(to be compatibel with password database comments). '^[ \t]*\n$'
1997-03-08 16:21:40 +00:00
Mike Pritchard
e42337987f
Add a missing semi-colon.
...
Submitted by: jmg
1997-03-07 06:15:54 +00:00
Andrey A. Chernov
1e12d1c9d9
Remove words about lower limit needed (from BUGS section), we have
...
precise limit now
1997-03-03 23:50:55 +00:00
Bruce Evans
e836e480dc
Fixed handling of input failure by the scanf family.
...
- 0 was returned instead of EOF when an input failure occured while
skipping white-space after 0 assignments. This fixes PR2606. The
diagnosis in PR2606 is wrong.
- EOF was returned instead of 0 when an input failure occurred after
zero assignments and nonzero suppressed assignments.
- EOF was spelled -1.
This should be in 2.2.
1997-03-03 17:53:02 +00:00
Warner Losh
59e5dcc34f
Use .Sq Li \&\e0 rather than NUL to describe the character with no bits
...
set, as suggested by Garrett Wollman. This is more consistant with how
things like strncpy are done, as well as harder to confuse NUL and NULL.
1997-03-03 15:39:06 +00:00
Bruce Evans
cdd42308ce
Enabled the Lite2 getvfsbyname(). It's actually named new_getvfsbyname()
...
for now so that we don't lose library compatibility. Applications should
define _NEW_VFSCONF and use getvfsbyname() instead of new_getvfsbyname()
if they want the new vfsconf interface. Parts of the old interface
(enough to load vfs modules, I hope) are still available.
1997-03-03 13:08:33 +00:00
Andrey A. Chernov
ee58dcaeb3
Use stricter MAXLOGNAME now
1997-03-03 09:52:26 +00:00
Andrey A. Chernov
216a8ce058
Reflect current MAXLONGNAME value and specify that null included
1997-03-03 09:17:16 +00:00
Andrey A. Chernov
09f3779132
Don't add/subtract 1 to MAXLOGNAME, it is already NUL-terminated
1997-03-03 08:11:28 +00:00
Mike Pritchard
10fd17786f
Change vfc_typenum back to vfc_index in response to bde's
...
commit to getvfsent.c rev 1.10.
1997-03-03 06:02:54 +00:00
Bruce Evans
0df382bd0f
Changed vfc_typenum back to vfc_index. The old vfsconf struct is now
...
visible again, and the new vfsconf struct didn't match reality.
1997-03-03 05:53:54 +00:00
Andrey A. Chernov
c3e7a0efd1
MAXLOGNAME currently 16, not 12
1997-03-02 21:47:03 +00:00
Warner Losh
8f58838644
Pendantic change of null to NUL. Also warn that this function does not
...
NUL terminate in the case of buffer overflow.
1997-03-02 20:07:37 +00:00
Bruce Evans
08f68ac6a6
Attempt to import Lite2's getvfsbyname.c.
1997-03-02 18:13:14 +00:00
Bruce Evans
095777c6a0
This commit was generated by cvs2svn to compensate for changes in r23291,
...
which included commits to RCS files with non-trunk default branches.
1997-03-02 18:13:14 +00:00
Mike Pritchard
6e11b43020
getnetbyaddr now takes an unsigned long as its first argument.
1997-02-28 06:28:53 +00:00
Mike Pritchard
7dbe27136f
Oops! I accidently commited a change that wasn't ready for prime
...
time yet. Revert to rev 1.2.
1997-02-28 06:26:26 +00:00
Mike Pritchard
cd1b6738ab
The struct vfsconf element vfc_index is now vfs_typenum.
1997-02-28 06:22:29 +00:00
Mike Pritchard
28f86af297
Correct the xref section - it was incorrectly using .Fn instead
...
of .Xr for the xrefs.
1997-02-28 05:46:19 +00:00
Warner Losh
2a62f02315
Buffer overflow from DNS name information which could cause root access
...
when called from lpd.
Reviewed by: jkh, pst
Submitted by: Oliver Friedrichs <oliver@secnet.com>
1997-02-26 06:12:34 +00:00
Peter Wemm
7e546392b5
Revert $FreeBSD$ to $Id$
1997-02-22 15:12:41 +00:00
Peter Wemm
b97fa2ef50
Revert $FreeBSD$ to $Id$
1997-02-22 14:13:04 +00:00
Daniel O'Callaghan
589dde865b
Typogrammatical error 'with' -> 'when'.
...
This could be put into 2.2.
1997-02-20 06:50:31 +00:00
Wolfram Schneider
b8dc034799
Add forgotten man page link fts_set.3 -> fts.3
1997-02-16 22:32:13 +00:00
Daniel O'Callaghan
d53ec6c0d0
Reviewed by: Bruce Evans <bde@freebsd.org>
...
Guard against possible buffer overrun in filename passed.
Another candidate for 2.2.
1997-02-15 07:10:26 +00:00
David Nugent
a60c8a80bc
Allow commonly-used "insecure" as a valid keyword in /etc/ttys.
...
This prevents keywords after "insecure" occurs being errnoeously
parsed as comments.
1997-02-15 05:45:00 +00:00
Bruce Evans
b416939d71
Moved definitions of PIC macros from SYS.h to DEFS.h so that SYS.h
...
doesn't need to be included in files that have nothing to do with
syscalls.
Added missing `.text' to START_ENTRY so that ENTRY() works when
invoked in the data section.
1997-02-14 10:57:07 +00:00
Adam David
590f415db7
lite2 remame: vfc_index --> vfc_typenum
1997-02-12 01:34:38 +00:00
Mike Pritchard
be619c7fbd
Update to reflect new Lite2 mount.h and friends.
1997-02-10 07:36:00 +00:00
Mike Pritchard
4cb0cd1bb5
Update to reflect new Lite2 mount.h.
1997-02-10 07:29:25 +00:00
Andrey A. Chernov
e799281533
Move _PathLocale to data-only file, so setrunelocale() not pick up
...
whole setlocale.c module now.
Should go into 2.2
1997-02-09 09:29:27 +00:00
Warner Losh
5480d8d5c2
Fix PR2579: potential security hole in rcmd.c
...
Submitted by: Julian Assange
1997-02-09 06:54:46 +00:00
Joerg Wunsch
cc551f25f4
Do Andrey's homework :) before merging this into 2.2:
...
. add idempotency #ifdef
. avoid sloppy common-style external declaration.
1997-02-08 14:04:30 +00:00
Andrey A. Chernov
b195036087
Include "setlocale.h" for _PathLocale like other parts already did
...
Should go in 2.2
1997-02-07 13:05:51 +00:00
Andrey A. Chernov
939aed4fb5
Comment out PATH_LOCALE reference
...
Should go into 2.2
1997-02-06 09:29:02 +00:00
Andrey A. Chernov
63407d3487
Use symbolic constants instead of hardcoded digits
...
Add range check for setrunelocale since it can be called
directly.
Remove _startup_setlocale compatibility function
Should go into 2.2
1997-02-06 09:11:06 +00:00
Paul Traina
b6b0d266cd
Fix yet another setlocale() bug.
...
Submitted by: Wojtek Pilorz <wpilorz@celebris.bdk.lublin.pl>
1997-02-06 08:31:42 +00:00
Julian Elischer
c840cec7c5
Submitted by: John Birrell
...
uthreads update from the author.
1997-02-05 23:26:09 +00:00
Andrey A. Chernov
628abd1b29
Add XXX comment describing potential memset non-portable issue
...
Nitpicked-by: joerg
1997-02-05 20:54:16 +00:00
Andrey A. Chernov
e56a1af623
Update the comment why range checking is not needed
...
Should go in 2.2
1997-02-05 19:22:04 +00:00
Andrey A. Chernov
d81a091605
Update the comment why range checking not needed
...
Fix setrunelocale fail if called directly without prior setlocale
call
Should go in 2.2
1997-02-05 19:17:10 +00:00
David Greenman
5979500afc
Killed getenv of PATH_LOCALE per Andrey's suggestion. It was intended
...
for debugging locale stuff, but was rarely if ever used...and of course
just bit a big chunk out of our collective hind-ends.
1997-02-05 09:53:25 +00:00