christos
1adc5f2d31
Fix gcc warnings (unused variables, missing prototypes, etc.)
...
Fix RCSID's
1997-07-13 19:13:59 +00:00
lukem
76c3314d9b
a valid uid/gid *ends* in \0 (i.e, barf if (*ep != '\0'), not if (*ep == '\0'))
1997-05-22 10:38:07 +00:00
lukem
50820e9b86
* parse gid with strtoul() instead of atoi(), and sanity check a) the parsed
...
value was just a number, b) it doesn't exceed GID_MAX
* convert gid to a string with %u not %d
* use [gu]id_t instead of int
1997-05-22 03:24:37 +00:00
lukem
f442f20a30
* parse uid with strtoul() instead of atoi(), and sanity check a) the parsed
...
value was just a number, b) it doesn't exceed UID_MAX
* convert uid to a string with %u not %d
1997-05-22 03:14:42 +00:00
lukem
8041f4f4ab
fix potential memory leaks: before calling yp_next(), reset key to NULL. if
...
an error occurred, and key != NULL, free(key).
1997-05-21 01:51:39 +00:00
lukem
1e601ecc2b
* fix [lib/3580], by ensuring that the outdata arg to the yp_xxx()
...
calls is initialised to the null pointer so that the error condition
doesn't fail by trying to free() memory that wasn't malloc()ed
* cleanup a bit; remove use of register, KNFify
1997-05-20 15:59:59 +00:00
mrg
9cd5492c02
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
...
- some KNF.
1997-01-23 14:01:45 +00:00
sommerfe
f218af3428
Longer login name support: use MAXLOGNAME, not UT_NAMESIZE
1996-12-20 20:16:05 +00:00
phil
e69d413643
Improvements to YP support from Jason Downs.
1995-07-28 05:43:01 +00:00
mycroft
be21323869
Modify getpwent() to use __ypparse().
1995-05-17 17:36:43 +00:00
cgd
b585e843ca
update from Lite, with local changes. fix Ids, etc.
1995-02-27 04:12:15 +00:00
deraadt
00f04ee544
__initdb() should only warn about spwd.db errors once, fix from
...
Cornelis van der Laan <nils@merlin.ims.uni-stuttgart.de>
1994-03-09 10:10:29 +00:00
deraadt
6401f7c13a
speed up getpwnam/getpwuid for standard cases
1993-12-10 12:46:29 +00:00
jtc
71afdb430b
Update source and manual pages to match X/Open 1170 specification.
...
Updated setpassent() to understand YP (a bug), and changed setpwent()
to simply be a call to setpassent(0) (to remove duplicated code).
1993-10-25 23:36:51 +00:00
jtc
92ba83edfc
X/Open 1170 defines the return type of setpwent() to be void -- a trival
...
change since our setpwent() allways succeeded.
1993-10-25 22:21:36 +00:00
jtc
9c20f740a3
Declare rcsid strings so they are stored in text segment.
1993-08-26 00:43:03 +00:00
mycroft
f23f94cb77
Add even more RCS frobs.
1993-07-30 08:21:41 +00:00
deraadt
9e0367ab04
fixed a yp-related bug found by Paul Kranenburg <pk@cs.few.eur.nl>:
...
endpwent was free'ing passwd line.
1993-07-24 18:28:32 +00:00
deraadt
3cbc24e4f9
I was horrified to find these had not been commited with the YP changes.
1993-05-04 05:10:45 +00:00
proven
38918af207
Opps, dbopen doesn't have an underscore. Fixed.
1993-04-21 04:26:21 +00:00
proven
2d21df758f
Fixed these twon files to use db_open instead of hash_open.
1993-04-21 04:21:06 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00