summaryrefslogtreecommitdiff
path: root/openbsd-compat/setproctitle.c
AgeCommit message (Collapse)Author
2019-06-16Include stdio.h for vsnprintf.Darren Tucker
Patch from mforney at mforney.org.
2018-09-07Initial len for the fmt=NULL case.Darren Tucker
Patch from jjelen at redhat via bz#2687. (OpenSSH never calls setproctitle with a null format so len is always initialized).
2016-08-02Strip trailing whitespace.Darren Tucker
Mechanically strip trailing whitespace on files not synced with OpenBSD (or in the case of bsd-snprint.c, rsync).
2014-01-22 - (djm) [openbsd-compat/setproctitle.c] Don't fail to compile if aDamien Miller
platform that is expected to use the reuse-argv style setproctitle hack surprises us by providing a setproctitle in libc; ok dtucker
2013-11-03 - (dtucker) [openbsd-compat/setproctitle.c] Handle error case form the 2ndDarren Tucker
vsnprintf. From eric at openbsd via chl@.
2008-05-16 - (djm) Force string arguments to replacement setproctitle() thoughDamien Miller
strnvis first. Ok dtucker@
2006-08-17 - (dtucker) [openbsd-compat/fake-rfc2553.c openbsd-compat/setproctitle.c]Darren Tucker
Include stdlib.h for malloc and friends.
2006-07-24 - (djm) [acss.c auth-krb5.c auth-options.c auth-pam.c auth-shadow.c]Damien Miller
[canohost.c channels.c cipher-acss.c defines.h dns.c gss-genr.c] [gss-serv-krb5.c gss-serv.c log.h loginrec.c logintest.c readconf.c] [servconf.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c ssh-rand-helper.c] [ssh.c sshconnect.c sshd.c openbsd-compat/bindresvport.c] [openbsd-compat/bsd-arc4random.c openbsd-compat/bsd-misc.c] [openbsd-compat/getrrsetbyname.c openbsd-compat/glob.c] [openbsd-compat/mktemp.c openbsd-compat/port-linux.c] [openbsd-compat/port-tun.c openbsd-compat/readpassphrase.c] [openbsd-compat/setproctitle.c openbsd-compat/xmmap.c] make the portable tree compile again - sprinkle unistd.h and string.h back in. Don't redefine __unused, as it turned out to be used in headers on Linux, and replace its use in auth-pam.c with ARGSUSED
2006-07-12 - (dtucker) [openbsd-compat/setproctitle.c] Include stdarg.h.Darren Tucker
2006-05-04 - (dtucker) [auth-pam.c groupaccess.c monitor.c monitor_wrap.c scard-opensc.cDarren Tucker
session.c ssh-rand-helper.c sshd.c openbsd-compat/bsd-cygwin_util.c openbsd-compat/setproctitle.c] Convert malloc(foo*bar) -> calloc(foo,bar) in Portable-only code; since calloc zeros, remove now-redundant memsets. Also add a couple of sanity checks. With & ok djm@
2004-02-20 - (djm) [openbsd-compat/setproctitle.c] fix comments; from grange@Damien Miller
2003-06-22 - (dtucker) [openbsd-compat/setproctitle.c] Ensure SPT_TYPE is defined beforeDarren Tucker
testing its value. When HAVE_SETPROCTITLE is defined (at least on NetBSD, gcc 2.95.3) the test "#if SPT_TYPE == SPT_REUSEARGV" is not true (probably because SPT_TYPE or SPT_REUSEARGV is not defined). This results in the following build error: $ gcc [flags] setproctitle.c setproctitle.c: In function `compat_init_setproctitle': setproctitle.c:102: `argv_start' undeclared (first use in this function)
2003-06-03Removal of advertising clause in accordance with:Damien Miller
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change ok theo@ and millert@
2003-06-03 - (djm) Replace setproctitle replacement with code derived fromDamien Miller
UCB sendmail
2003-01-20 - (djm) Fix compilation for NetBSD from dtucker@zip.com.auDamien Miller
2003-01-13 - (djm) Rework openbsd-compat/setproctitle.c a bit: move emulation typeDamien Miller
detection to configure.ac. Prompted by stevesk@
2003-01-10 - (djm) Enable new setproctitle emulation for Linux, AIX and HP/UX. MoreDamien Miller
systems may be added later.
2002-02-13 - (djm) Sync openbsd-compat with OpenBSD CVS tooDamien Miller
2001-01-31 - (bal) Reorder. Move all bsd-*, fake-*, next-*, and cygwin* stuff toBen Lindstrom
openbsd-compat/. And resolve all ./configure and Makefile.in issues assocated. Logic: * All OpenBSD functions should have the same filename as in the OpenBSD tree * All 'home brew' functions have bsd-* infront of them. * All 'not really implemented' functions have fake-* infront of them.