The NetBSD Project

CVS log for src/lib/libc/gen/getpwent.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.84 / (download) - annotate - [select for diffs], Sat Jan 20 14:52:47 2024 UTC (2 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.83: +3 -2 lines
Diff to previous 1.83 (colored) to selected 1.24 (colored)

Catch up with all the lint warnings since exit on warning was disabled.
Disable 'missing header declaration' and 'nested extern' warnings for now.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Apr 19 20:32:15 2022 UTC (23 months, 1 week ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) to selected 1.24 (colored)

lib: remove CONSTCOND comment

Since 2021-01-31, lint doesn't need it anymore for the common pattern of
'do ... while (0)'.

Revision 1.81.14.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:56:57 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.81: +2 -3 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.24 (colored)

Sync with HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Sat Jan 14 22:19:29 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.81: +2 -3 lines
Diff to previous 1.81 (colored) to selected 1.24 (colored)

don't include machine/param.h <sys/param.h> already does WTF?

Revision 1.77.8.1 / (download) - annotate - [select for diffs], Thu Nov 7 20:38:43 2013 UTC (10 years, 4 months ago) by snj
Branch: netbsd-6
Changes since 1.77: +9 -5 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.24 (colored)

Pull up following revision(s) (requested by christos in ticket #979):
	lib/libc/gen/getpwent.c: revision 1.79
PR/46279: Dr. W. Stukenbrock: Off-by-one in buffer length check and make sure
that the password fits in the supplied buffer.

Revision 1.77.6.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:58:46 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.77.6.1: +11 -10 lines
Diff to previous 1.77.6.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored) to selected 1.24 (colored)

sync with head

Revision 1.81 / (download) - annotate - [select for diffs], Sat Sep 8 15:15:06 2012 UTC (11 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914, agc-symver-base, agc-symver
Branch point for: pgoyette-localcount
Changes since 1.80: +11 -10 lines
Diff to previous 1.80 (colored) to selected 1.24 (colored)

Revert previous temporary measure and fix the assertion properly instead.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Sep 7 04:50:35 2012 UTC (11 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored) to selected 1.24 (colored)

Disable bogus _DIAGASSERT.

Revision 1.77.6.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:18 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.77: +55 -30 lines
Diff to previous 1.77 (colored) to selected 1.24 (colored)

sync with head

Revision 1.79 / (download) - annotate - [select for diffs], Thu Mar 29 14:43:58 2012 UTC (12 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.78: +9 -5 lines
Diff to previous 1.78 (colored) to selected 1.24 (colored)

PR/46279: Dr. W. Stukenbrock: Off-by-one in buffer length check and make sure
that the password fits in the supplied buffer.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Mar 29 13:05:10 2012 UTC (12 years ago) by christos
Branch: MAIN
Changes since 1.77: +48 -27 lines
Diff to previous 1.77 (colored) to selected 1.24 (colored)

PR?40728: W. Stukenbrock: Fix various issues with NIS-netgroups in users
and groups.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Mar 23 20:28:59 2010 UTC (14 years ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.76: +2 -8 lines
Diff to previous 1.76 (colored) to selected 1.24 (colored)

remove some stray __weak_aliases, where the target functions were
__RENAMEd due to the time_t/dev_t type changes, which caused bogus
references to compat functions
now a libc built with BUILDCOLD is usable

Revision 1.76 / (download) - annotate - [select for diffs], Sun Jan 11 02:46:27 2009 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.75: +47 -12 lines
Diff to previous 1.75 (colored) to selected 1.24 (colored)

merge christos-time_t

Revision 1.75.8.3 / (download) - annotate - [select for diffs], Sun Dec 28 01:18:11 2008 UTC (15 years, 3 months ago) by christos
Branch: christos-time_t
Changes since 1.75.8.2: +3 -3 lines
Diff to previous 1.75.8.2 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.24 (colored)

don't hard-code 8.

Revision 1.75.8.2 / (download) - annotate - [select for diffs], Sun Nov 23 21:44:07 2008 UTC (15 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.75.8.1: +2585 -0 lines
Diff to previous 1.75.8.1 (colored) to branchpoint 1.75 (colored) to selected 1.24 (colored)

- add a VERSION tag in the db files to handle new and old version passwd
  entries.
XXX: Need to add the tag in mkpasswd.

Revision 1.74.10.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:15 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.74: +2 -9 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.24 (colored)

sync with head.

Revision 1.75.8.1, Mon Apr 28 20:22:59 2008 UTC (15 years, 11 months ago) by christos
Branch: christos-time_t
Changes since 1.75: +0 -2550 lines
FILE REMOVED

file getpwent.c was added on branch christos-time_t on 2008-11-23 21:44:07 +0000

Revision 1.75 / (download) - annotate - [select for diffs], Mon Apr 28 20:22:59 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, christos-time_t-nbase, christos-time_t-base
Branch point for: christos-time_t
Changes since 1.74: +2 -9 lines
Diff to previous 1.74 (colored) to selected 1.24 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.74 / (download) - annotate - [select for diffs], Sat Feb 3 16:22:48 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.73: +4 -3 lines
Diff to previous 1.73 (colored) to selected 1.24 (colored)

make this compile with DIAGNOSTIC

Revision 1.73 / (download) - annotate - [select for diffs], Sun Oct 15 16:14:46 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.72: +16 -16 lines
Diff to previous 1.72 (colored) to selected 1.24 (colored)

fix incomplete initializers

Revision 1.66.2.3 / (download) - annotate - [select for diffs], Thu Jul 13 09:29:40 2006 UTC (17 years, 8 months ago) by ghen
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.66.2.2: +4 -5 lines
Diff to previous 1.66.2.2 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored) to selected 1.24 (colored)

Pull up following revision(s) (requested by ginsbach in ticket #1399):
	lib/libc/gen/getpwent.c: revision 1.72
Fix YP lookup latency reported by Stephen M. Jones on tech-net.  This is a
performance regression between 2.0 and 3.0.  The passwd compat method was
incorrectly querying the NIS server with yp_first()/yp_next() rather than
using yp_match() with the correct key.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jun 29 21:16:04 2006 UTC (17 years, 9 months ago) by ginsbach
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.71: +4 -5 lines
Diff to previous 1.71 (colored) to selected 1.24 (colored)

Fix YP lookup latency reported by Stephen M. Jones on tech-net.  This is a
performance regression between 2.0 and 3.0.  The passwd compat method was
incorrectly querying the NIS server with yp_first()/yp_next() rather than
using yp_match() with the correct key.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Mar 19 03:05:57 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.70: +2 -4 lines
Diff to previous 1.70 (colored) to selected 1.24 (colored)

Coverity CID 708: Remove dead code.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Mon Jul 11 21:24:36 2005 UTC (18 years, 8 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.66.2.1: +32 -12 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored) to selected 1.24 (colored)

Pull up revision 1.68 (requested by lukem in ticket #540):
getpw{ent,nam,uid}_r():
Return 0 "entry not found" and errno for other failures.
("entry not found" still sets *result to NULL).
Various backends:
don't set the retval to errno (or modify errno) for NS_NOTFOUND.
Per discussion with Klaus Klein.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Mon Jul 11 21:22:27 2005 UTC (18 years, 8 months ago) by tron
Branch: netbsd-3
Changes since 1.66: +238 -12 lines
Diff to previous 1.66 (colored) to selected 1.24 (colored)

Pull up revision 1.67 (requested by lukem in ticket #540):
PR/29849, PR/29850: Add getpwent_r and getgrent_r

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jun 5 01:15:29 2005 UTC (18 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.24 (colored)

Cosmetic tweak previous; IMHO we don't need the XXX comment in this
case, since I prefer to NULL initialize variables in this situation.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jun 4 22:14:00 2005 UTC (18 years, 9 months ago) by he
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.24 (colored)

Add an initialization to appease -Wuninitialized.  Apparently the
sparc64 compiler gets this wrong.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Apr 19 02:49:00 2005 UTC (18 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.67: +32 -12 lines
Diff to previous 1.67 (colored) to selected 1.24 (colored)

getpw{ent,nam,uid}_r():
Return 0 "entry not found" and errno for other failures.
("entry not found" still sets *result to NULL).

Various backends:
don't set the retval to errno (or modify errno) for NS_NOTFOUND.

Per discussion with Klaus Klein.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Apr 2 04:53:53 2005 UTC (19 years ago) by christos
Branch: MAIN
Changes since 1.66: +238 -12 lines
Diff to previous 1.66 (colored) to selected 1.24 (colored)

PR/29849, PR/29850: Add getpwent_r and getgrent_r

Revision 1.66 / (download) - annotate - [select for diffs], Mon Feb 28 00:40:05 2005 UTC (19 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.65: +15 -7 lines
Diff to previous 1.65 (colored) to selected 1.24 (colored)

Restore getpwent() behaviour prior to rev 1.57; skip dodgy NIS & DNS entries
rather than failing with NS_UNAVAIL when encountering them.
Fixes PR 29272 by Antoine Reilles.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Nov 10 12:57:32 2004 UTC (19 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.64: +15 -35 lines
Diff to previous 1.64 (colored) to selected 1.24 (colored)

Use the common __nsdefaultFOO rather than private defaultFOO duplicates.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Nov 10 04:11:34 2004 UTC (19 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.63: +9 -10 lines
Diff to previous 1.63 (colored) to selected 1.24 (colored)

Use _GETPW_R_SIZE_MAX from <limits.h> rather than defining a private version.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Nov 1 08:21:34 2004 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.62: +4 -4 lines
Diff to previous 1.62 (colored) to selected 1.24 (colored)

default to "compat" not "files"

Revision 1.62 / (download) - annotate - [select for diffs], Fri Oct 29 06:32:09 2004 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.61: +4 -3 lines
Diff to previous 1.61 (colored) to selected 1.24 (colored)

#include "reentrant.h" instead of <threadlib.h>

Revision 1.61 / (download) - annotate - [select for diffs], Sun Oct 24 14:46:23 2004 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.60: +23 -2 lines
Diff to previous 1.60 (colored) to selected 1.24 (colored)

Protect access to all public functions via a mutex as some of the backends are
not reentrant (such as compat, because it uses the non reentrant getnetgrent(3)
to implement `+@netgrp' & `-@netgrp').

Revision 1.60 / (download) - annotate - [select for diffs], Mon Oct 11 09:42:06 2004 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.59: +9 -7 lines
Diff to previous 1.59 (colored) to selected 1.24 (colored)

Fix MKYP=no MKHESIOD=no build.
Rename an internal function to a more appropriate name.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Oct 7 06:11:24 2004 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.58: +9 -3 lines
Diff to previous 1.58 (colored) to selected 1.24 (colored)

Ensure that _nis_start(&state) has been called before using PASSWD_BYNAME()
or PASSWD_BYUID(), otherwise state.maptype won't be correct and the wrong
map may be selected (e.g., "passwd.by*" instead of "master.passwd.by*").

Set _PASSWORD_NOWARN in flags to __pw_scan(), so libc won't display parse
errors to stderr.  (This was the behaviour before my recent rototill.)

Fixes PR 27168 from Markus W Kilbinger.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Oct 5 12:09:23 2004 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.57: +12 -8 lines
Diff to previous 1.57 (colored) to selected 1.24 (colored)

Use PASSWD_BYxxx(state) macros instead of "passwd.byxxx" to refer to
the NIS "passwd.by*" maps.
Fixes problem with "passwd_compat: nis" noted by Matthias Scheler.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Oct 5 04:45:54 2004 UTC (19 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.56: +1980 -928 lines
Diff to previous 1.56 (colored) to selected 1.24 (colored)

Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getpwent(3).
Per my proposal on tech-userlevel.

Implement getpwgid_r() and getpwnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getpwent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETPW_R_SIZE_MAX to sysconf(3).

Fix the compat `+' prototype override so getpwnam(3) and getpwuid(3) DTRT.

Improve the description of pw_class and pw_gecos.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Nov 26 00:48:59 2003 UTC (20 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.55: +11 -4 lines
Diff to previous 1.55 (colored) to selected 1.24 (colored)

Fix compile problem if -UYP -DHESIOD.
Noted on current-users by Srinivasa Kanduru.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Oct 13 15:36:33 2003 UTC (20 years, 5 months ago) by agc
Branch: MAIN
Changes since 1.54: +10 -17 lines
Diff to previous 1.54 (colored) to selected 1.24 (colored)

Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause.  Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Aug 7 16:42:50 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.53: +29 -2 lines
Diff to previous 1.53 (colored) to selected 1.24 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.

Revision 1.48.2.6 / (download) - annotate - [select for diffs], Tue Dec 10 06:25:48 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.48.2.5: +8 -13 lines
Diff to previous 1.48.2.5 (colored) next main 1.49 (colored) to selected 1.24 (colored)

Sync with HEAD.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Nov 17 01:51:25 2002 UTC (21 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.52: +8 -13 lines
Diff to previous 1.52 (colored) to selected 1.24 (colored)

use strlcpy where it is more appropriate.

Revision 1.48.2.5 / (download) - annotate - [select for diffs], Mon Nov 11 22:22:11 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.48.2.4: +3 -3 lines
Diff to previous 1.48.2.4 (colored) to selected 1.24 (colored)

Catch up to -current

Revision 1.52 / (download) - annotate - [select for diffs], Mon Nov 11 17:15:51 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.24 (colored)

Fix signed/unsigned comparison warnings.

Revision 1.48.2.4 / (download) - annotate - [select for diffs], Fri Jun 21 18:18:09 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.48.2.3: +3 -8 lines
Diff to previous 1.48.2.3 (colored) to selected 1.24 (colored)

Catch up to -current.

Revision 1.51 / (download) - annotate - [select for diffs], Sun May 26 14:03:20 2002 UTC (21 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.50: +3 -8 lines
Diff to previous 1.50 (colored) to selected 1.24 (colored)

__STDC__ is always defined on NetBSD.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Thu Apr 25 04:01:41 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.48.2.2: +4 -5 lines
Diff to previous 1.48.2.2 (colored) to selected 1.24 (colored)

Catch up to -current.

Revision 1.46.4.4 / (download) - annotate - [select for diffs], Wed Apr 17 11:46:02 2002 UTC (21 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.46.4.3: +4 -5 lines
Diff to previous 1.46.4.3 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.24 (colored)

Pull up revision 1.50 (requested by groo):
  Replace an instance of erroneous usage of strncpy() with strlcpy().

Revision 1.46.4.3 / (download) - annotate - [select for diffs], Wed Apr 17 11:45:21 2002 UTC (21 years, 11 months ago) by he
Branch: netbsd-1-5
Changes since 1.46.4.2: +8 -5 lines
Diff to previous 1.46.4.2 (colored) to branchpoint 1.46 (colored) to selected 1.24 (colored)

Pull up revision 1.49 (requested by he):
  Return an error if we try to look up a user name that is too long,
  rather than trying to truncate.  Fixes non-exploitable core dump
  problem inside DB.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Apr 16 19:10:07 2002 UTC (21 years, 11 months ago) by groo
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.49: +4 -5 lines
Diff to previous 1.49 (colored) to selected 1.24 (colored)

botched strncpy -> strlcpy
from xs@kittenz.org

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Fri Mar 22 20:42:08 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.48.2.1: +2 -2 lines
Diff to previous 1.48.2.1 (colored) to selected 1.24 (colored)

Catch up to -current.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Fri Mar 8 21:35:07 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.48: +8 -5 lines
Diff to previous 1.48 (colored) to selected 1.24 (colored)

Catch up to -current.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Feb 12 18:58:04 2002 UTC (22 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.48: +8 -5 lines
Diff to previous 1.48 (colored) to selected 1.24 (colored)

Just return an error if we try to look up a user name that's too long, rather
than trying to truncate.  The previous truncation code actually set key.size
too large and caused a (non-exploitable) core dump inside DB.

Revision 1.46.4.2 / (download) - annotate - [select for diffs], Wed Oct 11 03:35:18 2000 UTC (23 years, 5 months ago) by enami
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.46.4.1: +1 -0 lines
Diff to previous 1.46.4.1 (colored) to branchpoint 1.46 (colored) to selected 1.24 (colored)

Pull up rev. 1.48 (approved by jhawk):
Reset allocated buffer size to 0 on allocation failure.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Oct 3 03:22:26 2000 UTC (23 years, 6 months ago) by enami
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 (colored) to selected 1.24 (colored)

Reset allocated buffer size to 0 on allocation failure.

Revision 1.46.4.1 / (download) - annotate - [select for diffs], Mon Oct 2 20:11:25 2000 UTC (23 years, 6 months ago) by simonb
Branch: netbsd-1-5
Changes since 1.46: +12 -5 lines
Diff to previous 1.46 (colored) to selected 1.24 (colored)

Pull up rev 1.47 (approved by thorpej):
  Fix potential buffer overflow processing long password database entries.
  Inspired by similar OpenBSD change.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Oct 2 19:25:32 2000 UTC (23 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.46: +12 -5 lines
Diff to previous 1.46 (colored) to selected 1.24 (colored)

Fix potential buffer overflow processing long password database entries.
Inspired by similar OpenBSD change.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jan 22 22:19:11 2000 UTC (24 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.45: +8 -8 lines
Diff to previous 1.45 (colored) to selected 1.24 (colored)

Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Sep 16 11:45:00 1999 UTC (24 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.44: +25 -9 lines
Diff to previous 1.44 (colored) to selected 1.24 (colored)

* use _DIAGASSERT() to check pointer arguments against NULL and file
  descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Tue Apr 27 22:09:45 1999 UTC (24 years, 11 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.40.2.1: +4 -3 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored) to selected 1.24 (colored)

pullup 1.43->1.44 (ross)

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Tue Apr 27 14:11:10 1999 UTC (24 years, 11 months ago) by perry
Branch: netbsd-1-4
Changes since 1.40: +56 -55 lines
Diff to previous 1.40 (colored) to selected 1.24 (colored)

pullup 1.41->1.43 (lukem)

Revision 1.44 / (download) - annotate - [select for diffs], Tue Apr 27 06:08:58 1999 UTC (24 years, 11 months ago) by ross
Branch: MAIN
Changes since 1.43: +4 -3 lines
Diff to previous 1.43 (colored) to selected 1.24 (colored)

Unconditionalize `rval' declaration referenced in usr.bin/chpass/ via .PATH

Revision 1.43 / (download) - annotate - [select for diffs], Mon Apr 26 04:01:32 1999 UTC (24 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.42: +7 -4 lines
Diff to previous 1.42 (colored) to selected 1.24 (colored)

change dns_getpw() to skip dodgy entries when doing getpwent(), rather
than returning NS_UNAVAIL. this means that a -ve uid entry in hesiod
doesn't stop getpwent() in its tracks. it also brings it in line with
how nis_getpw() works as well in this situation.
problem tracked down (with much pain & suffereing) by simonb.

XXX: we currently have no support for -ve uids, and this is painful in
XXX: hetrogenous environment... (this -ve check is enforced in __pwscan())

Revision 1.42 / (download) - annotate - [select for diffs], Sun Apr 25 07:54:01 1999 UTC (24 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.41: +51 -53 lines
Diff to previous 1.41 (colored) to selected 1.24 (colored)

change getpwent() backends so that a flag (per source) is set once the
source has been exhausted. this allows getpwent() across multiple
sources (e.g, ``passwd: files nis'') to work correctly. the flags are
reset in setpassent()/endpwent().

this fixes a bug noted in [lib/7449] by thorpej, and tracked down to
getpwent() as being the culprit by simonb.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Apr 18 02:04:05 1999 UTC (24 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.40: +8 -2 lines
Diff to previous 1.40 (colored) to selected 1.24 (colored)

specifically include stdarg/varargs.h

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jan 26 01:08:06 1999 UTC (25 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.39: +27 -11 lines
Diff to previous 1.39 (colored) to selected 1.24 (colored)

always compile in support for `compat' backends (even if !YP & !HESIOD),
and make it the responsibility of the backends to fallback to `files'
if !YP & !HESIOD. fixes chsh problem noted by billc@netbsd.org.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jan 25 01:09:34 1999 UTC (25 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.38: +22 -17 lines
Diff to previous 1.38 (colored) to selected 1.24 (colored)

convert from hes_*() -> hesiod_*()

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jan 21 12:42:06 1999 UTC (25 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +7 -3 lines
Diff to previous 1.37 (colored) to selected 1.24 (colored)

Use the right map for Hesiod lookups by uid.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jan 20 13:12:07 1999 UTC (25 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.36: +23 -15 lines
Diff to previous 1.36 (colored) to selected 1.24 (colored)

- remove unneeded casts
- remove unreachable code
- delint

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 19 08:30:47 1999 UTC (25 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.35: +20 -12 lines
Diff to previous 1.35 (colored) to selected 1.24 (colored)

* `passwd' defaults to `compat', and `passwd_compat' defaults to `nis'
* constify ns_dtab defs

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 19 08:04:27 1999 UTC (25 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.34: +39 -35 lines
Diff to previous 1.34 (colored) to selected 1.24 (colored)

* maximum limit of names is MAXLOGNAME not UT_NAMESIZE. fixes [bin/6847] from
  scott ellis.
* convert to new nsdispatch(3)

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jan 18 00:59:10 1999 UTC (25 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.33: +95 -111 lines
Diff to previous 1.33 (colored) to selected 1.24 (colored)

* fix _compat_getpw so that it returns _local_getpw(...) if there
  isn't a `+' token in the files database.
  (this bug probably crept in when a merge to current occurred)
* ensure that the _bad_getpw callbacks in __getpwcompat have an
  argument for error reporting.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jan 16 14:42:54 1999 UTC (25 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored) to selected 1.24 (colored)

fix some uid casts

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jan 16 07:47:19 1999 UTC (25 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.31: +650 -516 lines
Diff to previous 1.31 (colored) to selected 1.24 (colored)

pull nsswitch up to main branch

Revision 1.21.2.6 / (download) - annotate - [select for diffs], Thu Jan 14 07:02:16 1999 UTC (25 years, 2 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.21.2.5: +30 -35 lines
Diff to previous 1.21.2.5 (colored) next main 1.22 (colored) to selected 1.24 (colored)

use new ns_dtab structure

Revision 1.21.2.5 / (download) - annotate - [select for diffs], Sun Nov 22 23:53:03 1998 UTC (25 years, 4 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.21.2.4: +4 -2 lines
Diff to previous 1.21.2.4 (colored) to selected 1.24 (colored)

missed an #if

Revision 1.31 / (download) - annotate - [select for diffs], Fri Nov 13 08:25:17 1998 UTC (25 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) to selected 1.24 (colored)

avoid assignment of a read only location that lint does not pick, but gcc does.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Nov 12 16:38:49 1998 UTC (25 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.29: +49 -44 lines
Diff to previous 1.29 (colored) to selected 1.24 (colored)

delint

Revision 1.21.2.4 / (download) - annotate - [select for diffs], Mon Nov 2 03:33:14 1998 UTC (25 years, 5 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.21.2.3: +136 -44 lines
Diff to previous 1.21.2.3 (colored) to selected 1.24 (colored)

sync with current

Revision 1.29 / (download) - annotate - [select for diffs], Wed Aug 26 00:38:40 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.28: +17 -17 lines
Diff to previous 1.28 (colored) to selected 1.24 (colored)

fix bcopy->memcpy with memcpy->memmove -- not strictly needed, but...

Revision 1.28 / (download) - annotate - [select for diffs], Mon Aug 10 02:43:09 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.27: +17 -17 lines
Diff to previous 1.27 (colored) to selected 1.24 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jun 27 05:08:22 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored) to selected 1.24 (colored)

Fix a serious symbol collision problem introduced when pw_scan() was added
to libc.  Note, pw_scan() is NO LONGER exported from libc (it never should
have been, and we're just going to pretend like it never was).

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 8 03:18:00 1998 UTC (25 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.25: +91 -39 lines
Diff to previous 1.25 (colored) to selected 1.24 (colored)

* move pw_scan() from libutil to libc
* add support for YP "master.passwd.by*" (master.passwd in YP, including
  pw_passwd) and "passwd.adjunct.by*" (SunOS `secure' maps (?)), based
  on code in FreeBSD and partially from OpenBSD.
  this is only used if euid == 0.
  with this, the YP "passwd.by*" maps can have `*' in the pw_passwd field.
* use pw_scan() to parse YP "passwd.by*" and "master.passwd.by*" entries

XXX: i didn't test the "passwd.adjunct" support...

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 10 03:56:33 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.24: +8 -4 lines
Diff to previous 1.24 (colored)

allow root to use pwd.db.

Revision 1.24 / (download) - annotate - [selected], Mon Feb 2 02:41:25 1998 UTC (26 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.23: +16 -17 lines
Diff to previous 1.23 (colored)

merge/update to lite-2

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Mon Feb 2 00:11:15 1998 UTC (26 years, 2 months ago) by perry
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +13 -14 lines
Diff to previous 1.1.1.2 (colored) to selected 1.24 (colored)

import lite-2

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jul 21 14:07:13 1997 UTC (26 years, 8 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.22: +12 -2 lines
Diff to previous 1.22 (colored) to selected 1.24 (colored)

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 13 19:13:59 1997 UTC (26 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.21: +7 -4 lines
Diff to previous 1.21 (colored) to selected 1.24 (colored)

Fix gcc warnings (unused variables, missing prototypes, etc.)
Fix RCSID's

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Mon Jun 2 05:01:12 1997 UTC (26 years, 10 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.21.2.2: +24 -14 lines
Diff to previous 1.21.2.2 (colored) to selected 1.24 (colored)

* set _pw_none = 1 && return NS_SUCCESS in _*_getpwent() at EOF, so that
  getpwent() won't merge sources.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Mon May 26 16:33:36 1997 UTC (26 years, 10 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.21.2.1: +29 -21 lines
Diff to previous 1.21.2.1 (colored) to selected 1.24 (colored)

only initialise ns_dtab if it hasn't been done yet

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sat May 24 07:19:25 1997 UTC (26 years, 10 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.21: +612 -512 lines
Diff to previous 1.21 (colored) to selected 1.24 (colored)

convert to using nsdispatch()

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 22 10:38:11 1997 UTC (26 years, 10 months ago) by lukem
Branch: MAIN
Branch point for: lukem-nsswitch2
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored) to selected 1.24 (colored)

a valid uid/gid *ends* in \0 (i.e, barf if (*ep != '\0'), not if (*ep == '\0'))

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 22 03:24:38 1997 UTC (26 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.24 (colored)

* 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

Revision 1.19 / (download) - annotate - [select for diffs], Thu May 22 03:14:42 1997 UTC (26 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.18: +15 -7 lines
Diff to previous 1.18 (colored) to selected 1.24 (colored)

* 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

Revision 1.18 / (download) - annotate - [select for diffs], Wed May 21 01:51:40 1997 UTC (26 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.17: +7 -3 lines
Diff to previous 1.17 (colored) to selected 1.24 (colored)

fix potential memory leaks: before calling yp_next(), reset key to NULL. if
an error occurred, and key != NULL, free(key).

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 20 15:59:59 1997 UTC (26 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.16: +23 -26 lines
Diff to previous 1.16 (colored) to selected 1.24 (colored)

* 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

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jan 23 14:01:56 1997 UTC (27 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.24 (colored)

- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Dec 20 20:16:05 1996 UTC (27 years, 3 months ago) by sommerfe
Branch: MAIN
Changes since 1.14: +8 -8 lines
Diff to previous 1.14 (colored) to selected 1.24 (colored)

Longer login name support: use MAXLOGNAME, not UT_NAMESIZE

Revision 1.14.8.1 / (download) - annotate - [select for diffs], Wed Nov 6 00:48:37 1996 UTC (27 years, 4 months ago) by lukem
Branch: nsswitch
Changes since 1.14: +565 -495 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.24 (colored)

initial nsswitch implementation

Revision 1.14.4.2 / (download) - annotate - [select for diffs], Thu Sep 19 20:03:04 1996 UTC (27 years, 6 months ago) by jtc
Branch: ivory_soap2
Changes since 1.14.4.1: +11 -2 lines
Diff to previous 1.14.4.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored) to selected 1.24 (colored)

snapshot namespace cleanup: gen

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Mon Sep 16 18:40:27 1996 UTC (27 years, 6 months ago) by jtc
Branch: ivory_soap2
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored) to selected 1.24 (colored)

snapshot namespace cleanup

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 28 05:43:01 1995 UTC (28 years, 8 months ago) by phil
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Branch point for: nsswitch, ivory_soap2
Changes since 1.13: +578 -93 lines
Diff to previous 1.13 (colored) to selected 1.24 (colored)

Improvements to YP support from Jason Downs.

Revision 1.13 / (download) - annotate - [select for diffs], Wed May 17 17:36:43 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +7 -25 lines
Diff to previous 1.12 (colored) to selected 1.24 (colored)

Modify getpwent() to use __ypparse().

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Tue May 2 19:34:49 1995 UTC (28 years, 11 months ago) by jtc
Branch: ivory_soap
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.24 (colored)

#include "namespace.h"

Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 27 04:13:05 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.11: +9 -4 lines
Diff to previous 1.11 (colored) to selected 1.24 (colored)

update from Lite, with local changes.  fix Ids, etc.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Feb 25 09:11:59 1995 UTC (29 years, 1 month ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: lite-1
Changes since 1.1.1.1: +4 -4 lines
Diff to previous 1.1.1.1 (colored) to selected 1.24 (colored)

from lite, with minor name rearrangement to fit.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Mar 9 10:10:29 1994 UTC (30 years ago) by deraadt
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Branch point for: ivory_soap
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored) to selected 1.24 (colored)

__initdb() should only warn about spwd.db errors once, fix from
Cornelis van der Laan <nils@merlin.ims.uni-stuttgart.de>

Revision 1.10 / (download) - annotate - [select for diffs], Fri Dec 10 12:46:29 1993 UTC (30 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +119 -104 lines
Diff to previous 1.9 (colored) to selected 1.24 (colored)

speed up getpwnam/getpwuid for standard cases

Revision 1.9 / (download) - annotate - [select for diffs], Mon Oct 25 23:36:55 1993 UTC (30 years, 5 months ago) by jtc
Branch: MAIN
Changes since 1.8: +8 -9 lines
Diff to previous 1.8 (colored) to selected 1.24 (colored)

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).

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 25 22:23:40 1993 UTC (30 years, 5 months ago) by jtc
Branch: MAIN
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored) to selected 1.24 (colored)

X/Open 1170 defines the return type of setpwent() to be void -- a trival
change since our setpwent() allways succeeded.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 26 00:44:42 1993 UTC (30 years, 7 months ago) by jtc
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.24 (colored)

Declare rcsid strings so they are stored in text segment.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 30 08:22:37 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) to selected 1.24 (colored)

Add even more RCS frobs.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jul 24 18:28:32 1993 UTC (30 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +8 -5 lines
Diff to previous 1.4 (colored) to selected 1.24 (colored)

fixed a yp-related bug found by Paul Kranenburg <pk@cs.few.eur.nl>:
endpwent was free'ing passwd line.

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 4 05:10:45 1993 UTC (30 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.3: +254 -3 lines
Diff to previous 1.3 (colored) to selected 1.24 (colored)

I was horrified to find these had not been commited with the YP changes.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 21 04:26:21 1993 UTC (30 years, 11 months ago) by proven
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) to selected 1.24 (colored)

Opps, dbopen doesn't have an underscore. Fixed.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 21 04:21:06 1993 UTC (30 years, 11 months ago) by proven
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.24 (colored)

Fixed these twon files to use db_open instead of hash_open.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.24 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.24 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>