Commit Graph

396 Commits

Author SHA1 Message Date
olah
9d247228f7 Fix bogus Makefile which resulted in incompatible shared and static
libs.

Reviewed by:	Michael Reifenberger <root@rz-wb.fh-sw.de>,
		roberto@blaise.ibp.fr (Ollivier ROBERT)
1995-02-21 10:46:34 +00:00
phk
4198645aef Speed md5 up around 30% by shorting out a couple of cumbersome
memcpy equivalent functions.
1995-02-21 06:01:49 +00:00
nate
853bdeaa76 Make libcompat a static only library.
Since functions will come and go from libcompat as they are deprecated
it makes no sense to build a shared library out of it as it will change.

Based on freedback from Terry and Jonas on the mailing lists.
1995-02-20 18:19:50 +00:00
ache
b25a4f776d Minor optimization. 1995-02-18 11:36:33 +00:00
ache
03868c1f7f Minor optimization 1995-02-18 01:42:02 +00:00
ache
c799593a3c Copyrights cleanup 1995-02-18 01:39:00 +00:00
se
c4c0871987 Bruce pointed out, that a misleading warning would be issued
in an (unlikely) border case (maxgroups==1 and the user is on
an /etc/group line for the same group and that group only ...).

Now this case is dealt with as before ...
1995-02-17 19:45:21 +00:00
se
ff92758488 Protect against duplicate gids in group list (as could be the
result of being a member of some group in both /etc/group and YP).
1995-02-17 17:36:09 +00:00
ache
ac6c80a544 Don't pick _warn module now 1995-02-17 16:36:12 +00:00
ats
cac2c71c94 Correct the parameters for the fchown. The third was erroneously
specified as uid_t but should be gid_t.
1995-02-17 00:41:30 +00:00
ache
fc07d6bd9f Add 8bit collate stuff
Submitted by: alex@elvisti.kiev.ua
1995-02-16 17:01:11 +00:00
ache
e29a5fa32b Add 8-bit collate stuff
Submitted by: alex@elvisti.kiev.ua
1995-02-16 04:24:39 +00:00
wollman
0c43ebeb07 Document Transaction TCP extensions to generic system calls. 1995-02-15 22:53:04 +00:00
ache
392e303064 Add missing lib_window.c to SRCS 1995-02-13 17:23:18 +00:00
phk
435c2d8824 Fix broken makefile. 1995-02-12 02:35:35 +00:00
jkh
4593c8efb1 Support for >32 PTYs.
Submitted by:	Heikki Suonsivu <hsu@cs.hut.fi>
1995-02-09 11:11:01 +00:00
jkh
257b085295 Install the header files. 1995-02-09 08:00:20 +00:00
bde
c00a2095d7 CLEANFILES was missing a few files. 1995-02-08 21:11:39 +00:00
bde
b3abe4b5d9 Add libpcap. I don't know what it is doing in the tree, but it has
settled for too long.  Compiling it gives 142 lines of compiler
warnings.  Perhaps the dirt will be fixed if it is visible.
1995-02-08 20:46:53 +00:00
jkh
b1f15c38fc Add two parts of Mark's/Gary's dlopen() changes that I missed before. 1995-02-08 17:56:27 +00:00
jkh
1e9d52ac8b Support for more Sun compatible dlopen() and friends. Also added proper error
handling.
Reviewed by:    gj
Submitted by:   Mark Diekhans <markd@grizzly.com>
1995-02-07 13:27:29 +00:00
dg
d64c1bcb01 Backed out Keith Bostic's getcwd/$PWD hack. It is causing things to break
all over the place.
1995-02-07 05:52:57 +00:00
phk
55facb23f1 Document the getenv(PWD) feature. 1995-02-05 18:14:38 +00:00
wpaul
cce442e387 Collapsed _masterpw_breakout_yp() and _pw_breakout_yp() into a
single function.
1995-02-05 02:12:49 +00:00
phk
a5966d32c5 A cute hack to speed up things by Keith: if getenv("PWD") is the same
inode as ".", then just return that.  I added a check so it must start with
a '/'.

Reviewed by:	phk
Submitted by:	bostic@cs.berkeley.edu (Keith Bostic)
1995-02-04 19:29:22 +00:00
bde
c22d424725 Include <time.h> instead of <sys/time.h> to get CLK_TCK. Including
<sys/time.h> works because <sys/time.h> includes <time.h> if KERNEL
is not defined, but is ugly.
1995-02-03 22:28:34 +00:00
bde
270188a75f Change CLK_TCK to CLOCKS_PER_SEC.
Add a missing apostrophe that suggests inverting the frequency to get
tick size.  It read better before because `CLK_TCK' suggests a tick
size although it is actually a frequency.
1995-02-03 22:09:56 +00:00
bde
380a681f10 Change CLK_TCK to CLOCKS_PER_SEC. (CLK_TCK is a deprecated POSIX feature
and is not necessarily related to the ANSI CLOCKS_PER_SEC).

Parenthesize macro args.
1995-02-03 21:59:45 +00:00
bde
6223046eb0 Fix previous change to preserve const'ness. 1995-02-03 21:54:03 +00:00
wpaul
34f250eab4 Fixed a rather serious bug that presents itself when FreeBSD is configured
as an NIS client. The pw_breakout_yp routines that are used to populate the
_pw_passwd structire only do anything if the bits in the pw_fields member
_pw_passwd are cleared. Unfortunately, we can get into a state where
pw_fields has garbage in it right before the YP lookup functions are
called, which causes the breakout functions to screw up in a big way.
Here's how to duplicate the problem:

- Configure FreeBSD as an NIS client
- Log in as a user who's password database records reside only in
  the NIS passwd maps.
- Type ps -aux

Result: your processes appear to be owned by 'root' or 'deamon.'
/bin/ls can exhibit the same problem.

The reason this happens:

- When ps(1) needs to match a username to a UID, it calls getpwuid().

- root is in the local password file, so getpwuid() calls  __hashpw()
  and __hashpw() populates the _pw_passwd struct, including the pw_fields
  member. This happens before NIS lookups take place because, by coincidence,
  ps(1) tends to display processes owned by root before it happens upon
  a proccess owned by you.

- When your UID comes up, __hashpw() fails to find your entry in the
  local password database, so it bails out, BUT THE BITS IN THE pw_fields
  STRUCTURE OF _pw_passwd ARE NEVER CLEARED AND STILL CONTAIN INFORMATION
  FROM THE PREVIOUS CALL TO __hash_pw()!!

- If we have NIS enabled, the NIS lookup functions are called.

- The pw_breakout_yp routines see that the pw_fields bits are set and
  decline to place the data retrieved from the NIS passwd maps into the
  _pw_passwd structure.

- getpwuid() returns the results of the last __hashpw() lookup instead
  of the valid NIS data.

- Hijinxs ensue when user_from_uid() caches this bogus information and
  starts handing out the wrong usernames.

AAAARRRRRRRRRGGGGGGHHHHHHHHHH!!!

*Please* don't tell me I'm the only person to have noticed this.

Fixed by having __hashpw() check the state of pw_fields just before
bailing out on a failed lookup and clearing away any leftover garbage.
What a fun way to spend an afternoon.
1995-02-03 01:09:35 +00:00
wpaul
aea58c24cb Fix for that last fix... pass the hat. :) 1995-02-01 20:09:00 +00:00
wpaul
6eefc56670 Small fix to _getyppass(): sometimes we can construct the wrong mapname
when looking for master.passwd.whatever.
1995-02-01 20:06:33 +00:00
paul
250440d357 Implemented height field for text fields so they can now be more than
one line long.

Fixed a bug in the input field with cursor positioning at the end of
the field.

Make the print_status function available to apps so they can print
status messages.

Updated the example for the new fib parser.
1995-02-01 04:06:37 +00:00
wpaul
dcbf20ba83 Some changes for YP password map handling:
- FreeBSD's NIS server can supply a master.passwd map, which has
  more fields in it than a standard passwd map, so we need a
  _master_pw_breakout() fuction.

- When doing passwd map lookups, look for master.passwd.* by attempting
  a _yp_first() on master.passwd.byname. If it exists, we're being served
  by a FreeBSD NIS server and we should use this map.

- If we aren't the superuser, retrieve only the standard passwd maps.
  If we're being served by a FreeBSD system, then the passwd map has
  no passwords in it, and it won't serve us the master.passwd map unless
  we're superuser anyway.

There's a small speed hit for the superuser inherent in the check for
the master.passwd map, but this lets us dynamically decide what to do
rather than rely on a non-standard config file somewhere. Since all
of this is bypassed for normal users, they shouldn't notice the
difference.
1995-01-31 10:04:18 +00:00
paul
f48c26f9e8 Add all the necessary bits to use color if the terminal allows it.
You can now specify separate attributes for selected/not selected
cases individually for each field and also an attr for the form as
a whole so you can now have colored backgrounds for the form and
different coloured fields etc.

Update the example.

Change the copyright to a BSD style one.
1995-01-30 02:41:29 +00:00
dg
7ae3d0e647 Be sure to properly fail if there are not enough fields. Problem
reported by MARC Giannoni <marc@cmc.eng.comsat.com>, this fix is by me.
1995-01-27 22:30:03 +00:00
dfr
490a61547e Reclaim memory used for telldir cookies on closedir. 1995-01-27 13:51:18 +00:00
dufault
8330e07ba0 Clean up handling of unspecified names. Clarify man page. 1995-01-26 23:48:41 +00:00
paul
ca1cf8bdce Truncate any default inputs to the input width.
Update the example so it works properly.
1995-01-25 08:26:17 +00:00
paul
4d1ec08b41 New example that uses the new forms language. 1995-01-25 03:34:48 +00:00
paul
1c82593249 Update libforms to agree with new fib. 1995-01-25 03:33:43 +00:00
dufault
1e671d13a2 Remove "va_start" macro. 1995-01-25 00:33:50 +00:00
ache
ea82b52f15 CFLAGS: = --> += 1995-01-24 22:09:46 +00:00
paul
c0cc7cfdef Changed the example to use the forms spec file. 1995-01-24 13:29:30 +00:00
paul
092b63d56d Changed the example to use the forms spec file.
Made a couple of variable name changes.
1995-01-24 13:27:46 +00:00
dufault
d1845fae30 added libscsi 1995-01-24 12:10:42 +00:00
dufault
b54a6d6e67 This commit was generated by cvs2svn to compensate for changes in r5847,
which included commits to RCS files with non-trunk default branches.
1995-01-24 12:10:11 +00:00
dufault
42806a94ee SCSI library layered on SCIOCOMMAND 1995-01-24 12:10:11 +00:00
jkh
95528a36a7 Eliminate a bogus tab. 1995-01-24 00:13:56 +00:00
wollman
a81c47ed12 Don't call _doprnt, which doesn't exist; use vfprintf. 1995-01-23 22:53:12 +00:00