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


Keyword substitution: kv
Default branch: MAIN


Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Jan 20 14:52:47 2024 UTC (11 months, 4 weeks ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 19 20:32:15 2022 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, 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
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 20 06:56:57 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +2 -3 lines
Sync with HEAD

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Jan 14 22:19:29 2017 UTC (8 years ago) by christos
Branches: 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-4-RELEASE, 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-3-RELEASE, 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
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -3 lines
don't include machine/param.h <sys/param.h> already does WTF?

Revision 1.77.8.1: download - view: text, markup, annotated - select for diffs
Thu Nov 7 20:38:43 2013 UTC (11 years, 2 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +9 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 30 18:58:46 2012 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.77.6.1: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.6.1: +11 -10 lines
sync with head

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Sep 8 15:15:06 2012 UTC (12 years, 4 months ago) by dholland
Branches: 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
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +11 -10 lines
Revert previous temporary measure and fix the assertion properly instead.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:50:35 2012 UTC (12 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3 lines
Disable bogus _DIAGASSERT.

Revision 1.77.6.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:18 2012 UTC (12 years, 9 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +55 -30 lines
sync with head

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Mar 29 14:43:58 2012 UTC (12 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +9 -5 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 29 13:05:10 2012 UTC (12 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +48 -27 lines
PR?40728: W. Stukenbrock: Fix various issues with NIS-netgroups in users
and groups.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Mar 23 20:28:59 2010 UTC (14 years, 10 months ago) by drochner
Branches: 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
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -8 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 11 02:46:27 2009 UTC (16 years ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +47 -12 lines
merge christos-time_t

Revision 1.75.8.3: download - view: text, markup, annotated - select for diffs
Sun Dec 28 01:18:11 2008 UTC (16 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.75.8.2: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.8.2: +3 -3 lines
don't hard-code 8.

Revision 1.75.8.2: download - view: text, markup, annotated - select for diffs
Sun Nov 23 21:44:07 2008 UTC (16 years, 1 month ago) by christos
Branches: christos-time_t
Diff to: previous 1.75.8.1: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.8.1: +2585 -0 lines
- 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 - view: text, markup, annotated - select for diffs
Sun May 18 12:30:15 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +2 -9 lines
sync with head.

Revision 1.75.8.1
Mon Apr 28 20:22:59 2008 UTC (16 years, 8 months ago) by christos
Branches: christos-time_t
FILE REMOVED
Changes since revision 1.75: +0 -2550 lines
file getpwent.c was added on branch christos-time_t on 2008-11-23 21:44:07 +0000

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:22:59 2008 UTC (16 years, 8 months ago) by martin
Branches: 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
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Feb 3 16:22:48 2007 UTC (17 years, 11 months ago) by christos
Branches: 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
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -3 lines
make this compile with DIAGNOSTIC

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Oct 15 16:14:46 2006 UTC (18 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +16 -16 lines
fix incomplete initializers

Revision 1.66.2.3: download - view: text, markup, annotated - select for diffs
Thu Jul 13 09:29:40 2006 UTC (18 years, 6 months ago) by ghen
Branches: 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
Diff to: previous 1.66.2.2: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.2.2: +4 -5 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 29 21:16:04 2006 UTC (18 years, 6 months ago) by ginsbach
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 19 03:05:57 2006 UTC (18 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -4 lines
Coverity CID 708: Remove dead code.

Revision 1.66.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 11 21:24:36 2005 UTC (19 years, 6 months ago) by tron
Branches: 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
Diff to: previous 1.66.2.1: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.2.1: +32 -12 lines
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 - view: text, markup, annotated - select for diffs
Mon Jul 11 21:22:27 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +238 -12 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 5 01:15:29 2005 UTC (19 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 4 22:14:00 2005 UTC (19 years, 7 months ago) by he
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
Add an initialization to appease -Wuninitialized.  Apparently the
sparc64 compiler gets this wrong.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Apr 19 02:49:00 2005 UTC (19 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +32 -12 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 2 04:53:53 2005 UTC (19 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +238 -12 lines
PR/29849, PR/29850: Add getpwent_r and getgrent_r

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Feb 28 00:40:05 2005 UTC (19 years, 10 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +15 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 10 12:57:32 2004 UTC (20 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +15 -35 lines
Use the common __nsdefaultFOO rather than private defaultFOO duplicates.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Nov 10 04:11:34 2004 UTC (20 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +9 -10 lines
Use _GETPW_R_SIZE_MAX from <limits.h> rather than defining a private version.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Nov 1 08:21:34 2004 UTC (20 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -4 lines
default to "compat" not "files"

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Oct 29 06:32:09 2004 UTC (20 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -3 lines
#include "reentrant.h" instead of <threadlib.h>

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Oct 24 14:46:23 2004 UTC (20 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +23 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 11 09:42:06 2004 UTC (20 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +9 -7 lines
Fix MKYP=no MKHESIOD=no build.
Rename an internal function to a more appropriate name.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Oct 7 06:11:24 2004 UTC (20 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +9 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 5 12:09:23 2004 UTC (20 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +12 -8 lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 5 04:45:54 2004 UTC (20 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +1980 -928 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 26 00:48:59 2003 UTC (21 years, 1 month ago) by lukem
Branches: 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
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +11 -4 lines
Fix compile problem if -UYP -DHESIOD.
Noted on current-users by Srinivasa Kanduru.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Oct 13 15:36:33 2003 UTC (21 years, 3 months ago) by agc
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +10 -17 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 7 16:42:50 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +29 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Dec 10 06:25:48 2002 UTC (22 years, 1 month ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.48.2.5: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.5: +8 -13 lines
Sync with HEAD.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Nov 17 01:51:25 2002 UTC (22 years, 2 months ago) by itojun
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +8 -13 lines
use strlcpy where it is more appropriate.

Revision 1.48.2.5: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:22:11 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.48.2.4: preferred, colored
Changes since revision 1.48.2.4: +3 -3 lines
Catch up to -current

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Nov 11 17:15:51 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
Fix signed/unsigned comparison warnings.

Revision 1.48.2.4: download - view: text, markup, annotated - select for diffs
Fri Jun 21 18:18:09 2002 UTC (22 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.48.2.3: preferred, colored
Changes since revision 1.48.2.3: +3 -8 lines
Catch up to -current.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun May 26 14:03:20 2002 UTC (22 years, 8 months ago) by wiz
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -8 lines
__STDC__ is always defined on NetBSD.

Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Thu Apr 25 04:01:41 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.48.2.2: preferred, colored
Changes since revision 1.48.2.2: +4 -5 lines
Catch up to -current.

Revision 1.46.4.4: download - view: text, markup, annotated - select for diffs
Wed Apr 17 11:46:02 2002 UTC (22 years, 9 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.46.4.3: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.4.3: +4 -5 lines
Pull up revision 1.50 (requested by groo):
  Replace an instance of erroneous usage of strncpy() with strlcpy().

Revision 1.46.4.3: download - view: text, markup, annotated - select for diffs
Wed Apr 17 11:45:21 2002 UTC (22 years, 9 months ago) by he
Branches: netbsd-1-5
Diff to: previous 1.46.4.2: preferred, colored; branchpoint 1.46: preferred, colored
Changes since revision 1.46.4.2: +8 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 16 19:10:07 2002 UTC (22 years, 9 months ago) by groo
Branches: 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
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -5 lines
botched strncpy -> strlcpy
from xs@kittenz.org

Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Fri Mar 22 20:42:08 2002 UTC (22 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.48.2.1: preferred, colored
Changes since revision 1.48.2.1: +2 -2 lines
Catch up to -current.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Fri Mar 8 21:35:07 2002 UTC (22 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -5 lines
Catch up to -current.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Feb 12 18:58:04 2002 UTC (22 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -5 lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 11 03:35:18 2000 UTC (24 years, 3 months ago) by enami
Branches: 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
Diff to: previous 1.46.4.1: preferred, colored; branchpoint 1.46: preferred, colored
Changes since revision 1.46.4.1: +1 -0 lines
Pull up rev. 1.48 (approved by jhawk):
Reset allocated buffer size to 0 on allocation failure.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Oct 3 03:22:26 2000 UTC (24 years, 3 months ago) by enami
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -2 lines
Reset allocated buffer size to 0 on allocation failure.

Revision 1.46.4.1: download - view: text, markup, annotated - select for diffs
Mon Oct 2 20:11:25 2000 UTC (24 years, 3 months ago) by simonb
Branches: netbsd-1-5
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +12 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 2 19:25:32 2000 UTC (24 years, 3 months ago) by simonb
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +12 -5 lines
Fix potential buffer overflow processing long password database entries.
Inspired by similar OpenBSD change.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Jan 22 22:19:11 2000 UTC (25 years ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +8 -8 lines
Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Sep 16 11:45:00 1999 UTC (25 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +25 -9 lines
* 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 - view: text, markup, annotated - select for diffs
Tue Apr 27 22:09:45 1999 UTC (25 years, 8 months ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Diff to: previous 1.40.2.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.1: +4 -3 lines
pullup 1.43->1.44 (ross)

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 27 14:11:10 1999 UTC (25 years, 8 months ago) by perry
Branches: netbsd-1-4
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +56 -55 lines
pullup 1.41->1.43 (lukem)

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Apr 27 06:08:58 1999 UTC (25 years, 9 months ago) by ross
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -3 lines
Unconditionalize `rval' declaration referenced in usr.bin/chpass/ via .PATH

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Apr 26 04:01:32 1999 UTC (25 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -4 lines
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 - view: text, markup, annotated - select for diffs
Sun Apr 25 07:54:01 1999 UTC (25 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +51 -53 lines
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 - view: text, markup, annotated - select for diffs
Sun Apr 18 02:04:05 1999 UTC (25 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +8 -2 lines
specifically include stdarg/varargs.h

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Jan 26 01:08:06 1999 UTC (26 years ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +27 -11 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 25 01:09:34 1999 UTC (26 years ago) by lukem
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +22 -17 lines
convert from hes_*() -> hesiod_*()

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Jan 21 12:42:06 1999 UTC (26 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +7 -3 lines
Use the right map for Hesiod lookups by uid.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jan 20 13:12:07 1999 UTC (26 years ago) by christos
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +23 -15 lines
- remove unneeded casts
- remove unreachable code
- delint

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Jan 19 08:30:47 1999 UTC (26 years ago) by lukem
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +20 -12 lines
* `passwd' defaults to `compat', and `passwd_compat' defaults to `nis'
* constify ns_dtab defs

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Jan 19 08:04:27 1999 UTC (26 years ago) by lukem
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +39 -35 lines
* maximum limit of names is MAXLOGNAME not UT_NAMESIZE. fixes [bin/6847] from
  scott ellis.
* convert to new nsdispatch(3)

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Jan 18 00:59:10 1999 UTC (26 years ago) by lukem
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +95 -111 lines
* 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 - view: text, markup, annotated - select for diffs
Sat Jan 16 14:42:54 1999 UTC (26 years ago) by lukem
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -5 lines
fix some uid casts

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Jan 16 07:47:19 1999 UTC (26 years ago) by lukem
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +650 -516 lines
pull nsswitch up to main branch

Revision 1.21.2.6: download - view: text, markup, annotated - select for diffs
Thu Jan 14 07:02:16 1999 UTC (26 years ago) by lukem
Branches: lukem-nsswitch2
Diff to: previous 1.21.2.5: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.5: +30 -35 lines
use new ns_dtab structure

Revision 1.21.2.5: download - view: text, markup, annotated - select for diffs
Sun Nov 22 23:53:03 1998 UTC (26 years, 2 months ago) by lukem
Branches: lukem-nsswitch2
Diff to: previous 1.21.2.4: preferred, colored
Changes since revision 1.21.2.4: +4 -2 lines
missed an #if

Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Nov 13 08:25:17 1998 UTC (26 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
avoid assignment of a read only location that lint does not pick, but gcc does.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Nov 12 16:38:49 1998 UTC (26 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +49 -44 lines
delint

Revision 1.21.2.4: download - view: text, markup, annotated - select for diffs
Mon Nov 2 03:33:14 1998 UTC (26 years, 2 months ago) by lukem
Branches: lukem-nsswitch2
Diff to: previous 1.21.2.3: preferred, colored
Changes since revision 1.21.2.3: +136 -44 lines
sync with current

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Aug 26 00:38:40 1998 UTC (26 years, 5 months ago) by perry
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +17 -17 lines
fix bcopy->memcpy with memcpy->memmove -- not strictly needed, but...

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Aug 10 02:43:09 1998 UTC (26 years, 5 months ago) by perry
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +17 -17 lines
bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jun 27 05:08:22 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 8 03:18:00 1998 UTC (26 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +91 -39 lines
* 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 - view: text, markup, annotated - select for diffs
Tue Feb 10 03:56:33 1998 UTC (26 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +8 -4 lines
allow root to use pwd.db.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Feb 2 02:41:25 1998 UTC (26 years, 11 months ago) by perry
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +16 -17 lines
merge/update to lite-2

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Feb 2 00:11:15 1998 UTC (26 years, 11 months ago) by perry
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +13 -14 lines
import lite-2

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jul 21 14:07:13 1997 UTC (27 years, 6 months ago) by jtc
Branches: 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +12 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 13 19:13:59 1997 UTC (27 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +7 -4 lines
Fix gcc warnings (unused variables, missing prototypes, etc.)
Fix RCSID's

Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 2 05:01:12 1997 UTC (27 years, 7 months ago) by lukem
Branches: lukem-nsswitch2
Diff to: previous 1.21.2.2: preferred, colored
Changes since revision 1.21.2.2: +24 -14 lines
* set _pw_none = 1 && return NS_SUCCESS in _*_getpwent() at EOF, so that
  getpwent() won't merge sources.

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Mon May 26 16:33:36 1997 UTC (27 years, 8 months ago) by lukem
Branches: lukem-nsswitch2
Diff to: previous 1.21.2.1: preferred, colored
Changes since revision 1.21.2.1: +29 -21 lines
only initialise ns_dtab if it hasn't been done yet

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Sat May 24 07:19:25 1997 UTC (27 years, 8 months ago) by lukem
Branches: lukem-nsswitch2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +612 -512 lines
convert to using nsdispatch()

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu May 22 10:38:11 1997 UTC (27 years, 8 months ago) by lukem
Branches: MAIN
Branch point for: lukem-nsswitch2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4 lines
a valid uid/gid *ends* in \0 (i.e, barf if (*ep != '\0'), not if (*ep == '\0'))

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu May 22 03:24:38 1997 UTC (27 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
* 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 - view: text, markup, annotated - select for diffs
Thu May 22 03:14:42 1997 UTC (27 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +15 -7 lines
* 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 - view: text, markup, annotated - select for diffs
Wed May 21 01:51:40 1997 UTC (27 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue May 20 15:59:59 1997 UTC (27 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +23 -26 lines
* 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 - view: text, markup, annotated - select for diffs
Thu Jan 23 14:01:56 1997 UTC (28 years ago) by mrg
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Dec 20 20:16:05 1996 UTC (28 years, 1 month ago) by sommerfe
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -8 lines
Longer login name support: use MAXLOGNAME, not UT_NAMESIZE

Revision 1.14.8.1: download - view: text, markup, annotated - select for diffs
Wed Nov 6 00:48:37 1996 UTC (28 years, 2 months ago) by lukem
Branches: nsswitch
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +565 -495 lines
initial nsswitch implementation

Revision 1.14.4.2: download - view: text, markup, annotated - select for diffs
Thu Sep 19 20:03:04 1996 UTC (28 years, 4 months ago) by jtc
Branches: ivory_soap2
Diff to: previous 1.14.4.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.4.1: +11 -2 lines
snapshot namespace cleanup: gen

Revision 1.14.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 16 18:40:27 1996 UTC (28 years, 4 months ago) by jtc
Branches: ivory_soap2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -2 lines
snapshot namespace cleanup

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Jul 28 05:43:01 1995 UTC (29 years, 6 months ago) by phil
Branches: 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
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +578 -93 lines
Improvements to YP support from Jason Downs.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed May 17 17:36:43 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +7 -25 lines
Modify getpwent() to use __ypparse().

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Tue May 2 19:34:49 1995 UTC (29 years, 8 months ago) by jtc
Branches: ivory_soap
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +2 -1 lines
#include "namespace.h"

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Feb 27 04:13:05 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +9 -4 lines
update from Lite, with local changes.  fix Ids, etc.

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Feb 25 09:11:59 1995 UTC (29 years, 11 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +4 -4 lines
from lite, with minor name rearrangement to fit.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Mar 9 10:10:29 1994 UTC (30 years, 10 months ago) by deraadt
Branches: 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
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -1 lines
__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 - view: text, markup, annotated - select for diffs
Fri Dec 10 12:46:29 1993 UTC (31 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +119 -104 lines
speed up getpwnam/getpwuid for standard cases

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Oct 25 23:36:55 1993 UTC (31 years, 3 months ago) by jtc
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -9 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 25 22:23:40 1993 UTC (31 years, 3 months ago) by jtc
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -3 lines
X/Open 1170 defines the return type of setpwent() to be void -- a trival
change since our setpwent() allways succeeded.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Aug 26 00:44:42 1993 UTC (31 years, 5 months ago) by jtc
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Declare rcsid strings so they are stored in text segment.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jul 30 08:22:37 1993 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1 lines
Add even more RCS frobs.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jul 24 18:28:32 1993 UTC (31 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +8 -5 lines
fixed a yp-related bug found by Paul Kranenburg <pk@cs.few.eur.nl>:
endpwent was free'ing passwd line.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue May 4 05:10:45 1993 UTC (31 years, 8 months ago) by deraadt
Branches: 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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +254 -3 lines
I was horrified to find these had not been commited with the YP changes.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Apr 21 04:26:21 1993 UTC (31 years, 9 months ago) by proven
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
Opps, dbopen doesn't have an underscore. Fixed.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Apr 21 04:21:06 1993 UTC (31 years, 9 months ago) by proven
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
Fixed these twon files to use db_open instead of hash_open.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>