Commit Graph

1882 Commits

Author SHA1 Message Date
wosch
aa246fe694 Potential bufferflow in getpwent(), getpwnam() and getpwuid()
PR: bin/4134
Submitted by:	nick@foobar.org
1997-09-14 18:16:11 +00:00
phk
d7a88f15e0 Add __getcwd() syscall, and have getcwd() take a shot at it.
If your kernel doesn't support __getcwd() or if __getcwd() cannot
deliver because of cache expiry, it does the canonical thing.
1997-09-14 16:57:27 +00:00
peter
76f7ee50c6 Call poll(2) from within the resolver but adapt to older kernels without it
if necessary.  This removes the need to malloc large fd_set's for selecting
on high fd's (larger than FD_SETSIZE at libc compile time).

The syscall adaptive stuff only happens on the very first call.  SIGSYS
is masked, and if the call to poll fails with ENOSYS, then we use select
for the life of the program.  If poll does not fail with ENOSYS, then we
always use poll and skip the once-off signal masking gunk.

This may be overkill, but it saved my neck a few times while working on
multiple different sets of kernel sources, some with poll, some without.
1997-09-14 09:44:34 +00:00
peter
ec85e9e432 A poll(2) manpage.
Obtained from: NetBSD
1997-09-14 05:44:35 +00:00
peter
f78cbfbddd Generate poll syscall stub 1997-09-14 03:29:55 +00:00
joerg
3fcf2a64b4 Document SA_NOCLDWAIT.
Make all the SA_* flags go into a tagged list, to improve readability.
1997-09-13 19:43:24 +00:00
bde
83ea5206cf Removed superfluous quoting of function args. 1997-09-07 04:10:35 +00:00
bde
258ba493d4 Fixed style bug in pseudocode. 1997-09-07 04:01:27 +00:00
brian
08afc95d11 Upgrade to 2.4 (Fix -PKT_ALIAS_UNREGISTERED_ONLY)
Submitted by:	Charles Mott <cmott@srv.net>

Add __libalias_version so that ppp can derive the
correct library name for dlopen()
1997-09-06 11:11:43 +00:00
peter
7e83ab577b When compiling under elf, use correct library naming conventions. Also
add the required extra symlink.  Set the -soname to libcrypt.so so that
the symlink is used at runtime rather than resolved at compile time.
1997-09-05 12:12:35 +00:00
peter
a7e8350ec8 If building under elf, have libskey.so depend on libmd and libcrypt. 1997-09-05 11:52:20 +00:00
peter
247813c4dd If not building a.out, still build a pic version of libmd. This allows
things like libskey.so to be dynamically self contained.

Things like md5(1) where speed is critical should still link with libmd.a,
but for things like login, where it's a once-off call if skey is used, it's
not worth the hassle.
1997-09-05 11:49:43 +00:00
pst
b7ff29b578 The parameters to logwtmp should be const char's 1997-09-04 22:38:59 +00:00
bde
0f53dfa307 Fixed synopsis. The envp arg for execle() can't be given in the prototype.
Fortunately, the man page doesn't refer to "envp" so just deleting it is OK.
1997-09-03 03:25:35 +00:00
ache
f1d8b3c99e Fix possible coredump on BW displays 1997-09-02 19:07:50 +00:00
brian
3828f693c8 Add "options no_tld_query" to resolv.conf.
Mention the capability in resolver(5).
Mention that RES_OPTIONS can be used in resolver(5).
Discussed with: -hackers
1997-09-01 01:19:23 +00:00
bde
f541dc7694 Hide the declaration of `struct exception' from C++, since it conflicts
with the standard C++ `class exception'.  This makes matherr() difficult
to use in C++.  Small loss.
1997-08-31 22:12:19 +00:00
bde
c71a102225 Fixed inclomplete function type in synopsis. 1997-08-31 21:54:10 +00:00
brian
c5afaa052c Remove login_progok()
Suggested by: guido
1997-08-31 20:09:39 +00:00
ache
c2ed2cf32e Restore back issetugid() usage and bump major number 1997-08-31 08:37:28 +00:00
phk
80f6292a1f Another 32bits of 64bits conformance.
Reviewed by:	phk
Submitted by:	jdp
1997-08-31 05:59:39 +00:00
peter
52f470fec5 Initial elf nlist support, mostly stolen from OpenBSD (they use standard
#defines that are compatable with ours).  I made some some minor tweaks
to the leading '_' tests.

Again, this is off by default for the moment.  This probably should be
split into seperate files (like some of our other libc files that could
do with some splitting).

Obtained from: OpenBSD (plus some minor tweaks)
1997-08-31 00:08:35 +00:00
kato
ad1a71f8e3 Added HW_MACHINE_ARCH. 1997-08-30 02:26:36 +00:00
imp
7f305e2398 Merge in the safe chdir changes from Todd Miller's mods to the OpenBSD
tree.  Also merge in fix to NetBSD PR #1495.  These represent 1.3-1.9 in
the OpenBSD tree.  Make minor KNF changes to new code (which is in the
OpenBSD as 1.10).  This avoids the symlink race problems.

These patches should go into 2.2.5 before the ship if they don't
break anything in -current.
Reviewed by:	Bruce Evans
Obtained from:	OpenBSD
1997-08-29 22:56:41 +00:00
jdp
ca6bace4ac Add a stub version of getpublickey(), in order to eliminate an
undefined symbol referenced from libc.  Without the stub, it is
impossible to execute any program using the shared library if
LD_BIND_NOW=1 is in the environment.  The stub always returns
failure, but it can be overridden outside the library when necessary.

I don't know whether this is the "correct" fix, but it is intolerable
to have any undefined symbols referenced from libc.
1997-08-28 21:50:33 +00:00
ache
154763e7ad Fix inspace handling I broke in rev 1.13 1997-08-28 08:13:21 +00:00
brian
8b40cd7eec Add full support for determining if a user
is restricted from running a given program.
1997-08-27 20:06:20 +00:00
ache
7a50669429 Use getpwnam(getlogin()) before getpwuid(getuid()) 1997-08-27 13:36:34 +00:00
phk
5a30ca0c56 Improvement of type independency for the bitmap.
This makes 64bit operation more likely.

Reviewed by:	phk
Submitted by:	jdp
1997-08-27 12:04:33 +00:00
phk
541bb01b22 Malloc option H is now default. 1997-08-27 06:40:34 +00:00
imp
30aeebf12f Don't getenv(HOME) when set[ug]od. This can lead to a buffer overflow and
elevated privs.
Obtained from: OpenBSD
1997-08-27 05:27:53 +00:00
brian
60e440ef1f Add prog.deny as a list capability for
denying execution of certain programs.
1997-08-26 23:15:57 +00:00
bde
064a439a2c -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys. 1997-08-26 14:13:02 +00:00
ache
be5a6babba Temp restore of rev 1.9 1997-08-26 12:47:09 +00:00
ache
0d1089b25e Temporarily comment out issetugid() call until everyone installs libtermcap,
major number bumping will follows then
1997-08-25 16:42:22 +00:00
ache
2be4109e84 Fix saving/restoring tty modes, allow initscr be called twice,
from ncurses 4.1
1997-08-25 07:41:15 +00:00
joerg
88662ccfea Make the MD* header files C++-aware. Also, string arguments are supposed
to be of type `const char *'.

PR:		3291
Submitted by:	dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum)
1997-08-25 05:24:31 +00:00
ache
0e1b76a058 Bump minor number due to issetugid() 1997-08-24 19:19:08 +00:00
ache
d1e2bc3a0a Add winnstr family and fake resizeterm from ncurses 4.1 for compatibility
with recent applications.
Bump minor number.
1997-08-24 19:09:45 +00:00
joerg
bd623e7830 Cosmetic: distinguish in diag message between rebuilding and updating
the database.

PR:		3397
Submitted by:	taob@risc.org (Brian Tao)
1997-08-24 18:23:21 +00:00
steve
07ee29d4fd Get rid of integer overflow warning.
PR:		misc/3575
Submitted by:	Bruce Evans <bde@zeta.org.au>
1997-08-23 23:51:12 +00:00
steve
cbaed4746c Remove extra definition of vwprintw.
PR:		bin/3623
Submitted by:	Stephen J. Roznowski <sjr1@flash.net>
1997-08-23 23:23:07 +00:00
steve
1f778937bf Reference the correct version of BSD at the bottom of the
manpage.

PR:		docs/3735
1997-08-23 21:32:50 +00:00
sos
d6c4abefb5 Activate libvgl 1997-08-22 13:20:03 +00:00
ache
9211c89bda Replace uids comparison by issetugid() call 1997-08-22 11:14:53 +00:00
bde
32378e6ea8 Fixed off by 1 error. 1997-08-21 19:44:41 +00:00
bde
327a6fd768 Split beforeinstall target so that headers can be installed without
installing data files.
1997-08-21 16:14:34 +00:00
peter
16525c303e Manpage for getsid(2). 1997-08-19 07:19:43 +00:00
peter
efdef6c426 Forgot to mention what getpgid(0) does. 1997-08-19 07:04:43 +00:00
peter
17a924131e Manpage for getpgid(2), wording taken from NetBSD. 1997-08-19 07:00:53 +00:00