History log of /openbsd-src/lib/libc/gen/getusershell.c (Results 1 – 18 of 18)
Revision Date Author Comments
# 10db3397 10-Dec-2019 millert <millert@openbsd.org>

Remove includes that are no longer neeed after tedu's simplification.
OK jca@


# 7a4171b0 08-Dec-2015 tedu <tedu@openbsd.org>

rewrite guts of getusershell() to avoid possibility of overflow.
instead of trying to allocate "just enough" memory based on the size of the
file (which is mostly comments, in fact), allocate memory

rewrite guts of getusershell() to avoid possibility of overflow.
instead of trying to allocate "just enough" memory based on the size of the
file (which is mostly comments, in fact), allocate memory on demand.
i.e., save memory by wasting it. also be a little stricter about parsing.
after discussion with tobias. (with a bug fix from patrick keshishian)
descended from bug glibc bug 18660 via tobias.

show more ...


# 183195fb 14-Sep-2015 tedu <tedu@openbsd.org>

remove null check before free. from Michael McConville
ok semarie


# 4239b822 06-Feb-2015 millert <millert@openbsd.org>

SIZE_MAX is standard, we should be using it in preference to the
obsolete SIZE_T_MAX. OK miod@ beck@


# 241db059 15-Sep-2014 guenther <guenther@openbsd.org>

When fopen()ing internal to libc (the API doesn't support the use
of the resulting FILE *), then pass fopen() the 'e' mode letter to
mark it close-on-exec.

ok miod@


# f0b13b6d 19-Jan-2014 tobias <tobias@openbsd.org>

Fix one more off-by-one (making it an off-by-two):

1. integer division can give an off-by-one (like 2/3 = 0 for calloc)
2. ending the shells array with NULL takes space, too

ok millert@


# 74f2eca7 17-Jan-2014 tobias <tobias@openbsd.org>

Fix off-by-one on specially crafted /etc/shells file.

ok gilles@, millert@


# dfe5467e 24-Nov-2013 deraadt <deraadt@openbsd.org>

most obvious unsigned char casts for ctype
ok jca krw ingo


# 69245ebd 30-Sep-2013 millert <millert@openbsd.org>

Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@


# b5ce4011 06-Apr-2012 deraadt <deraadt@openbsd.org>

range check st_size before calling calloc()
ok millert


# c2c925de 08-Aug-2005 espie <espie@openbsd.org>

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


# 6abf488e 02-Apr-2005 millert <millert@openbsd.org>

Add /bin/ksh to builtin list of OK shells.


# 80647cb2 25-Mar-2005 otto <otto@openbsd.org>

deregister (and deauto!). ok millert@ marco@


# 73b3e3c4 18-May-2004 jfb <jfb@openbsd.org>

ansify function definitions and zap some `register'

ok millert@


# 6580fee3 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.

show more ...


# e9b2b68c 19-Aug-1996 tholo <tholo@openbsd.org>

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree