summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-closefrom.c
Commit message (Collapse)AuthorAgeFilesLines
* remove sys/param.h in -portable, after upstreamDamien Miller2021-12-221-1/+0
|
* Don't trust closefrom() on Linux.Darren Tucker2021-11-101-1/+6
| | | | | | | | glibc's closefrom implementation does not work in a chroot when the kernel does not have close_range. It tries to read from /proc/self/fd and when that fails dies with an assertion of sorts. Instead, call close_range ourselves from our compat code and fall back if that fails. bz#3349, with william.wilson at canonical.com and fweimer at redhat.com.
* fixed test in OSX closefrom() replacementDamien Miller2019-09-021-2/+2
| | | | from likan_999.student AT sina.com
* proc_pidinfo()-based closefrom() for OS XDamien Miller2019-08-301-21/+67
| | | | | | Refactor closefrom() to use a single brute-force close() loop fallback. Based on patch from likan_999.student@sina.com in bz#3049. ok dtucker@
* correct snprintf truncation check in closefrom()Damien Miller2018-07-271-1/+1
| | | | | | | Truncation cannot happen unless the system has set PATH_MAX to some nonsensically low value. bz#2862, patch from Daniel Le
* - (dtucker) [openbsd-compat/bsd-closefrom.c] Comment out rcsid.Darren Tucker2006-08-181-1/+1
|
* - (dtucker) [configure.ac openbsd-compat/bsd-closefrom.c] Resync withDarren Tucker2006-08-181-9/+11
| | | | closefrom.c from sudo.
* - (dtucker) [configure.ac openbsd-compat/bsd-closefrom.c] Use F_CLOSEM fcntlDarren Tucker2006-08-171-0/+7
| | | | for closefrom() on AIX. Pointed out by William Ahern.
* - (djm) [openbsd-compat/basename.c openbsd-compat/bsd-closefrom.c]Damien Miller2006-07-241-0/+2
| | | | | | | | | [openbsd-compat/bsd-cray.c openbsd-compat/bsd-openpty.c] [openbsd-compat/bsd-snprintf.c openbsd-compat/fake-rfc2553.c] [openbsd-compat/port-aix.c openbsd-compat/port-irix.c] [openbsd-compat/rresvport.c] These look to need string.h and/or unistd.h (based on a grep for function names)
* - deraadt@cvs.openbsd.org 2006/03/19 18:51:18Damien Miller2006-03-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | [atomicio.c auth-bsdauth.c auth-chall.c auth-krb5.c auth-options.c] [auth-pam.c auth-passwd.c auth-rh-rsa.c auth-rhosts.c auth-rsa.c] [auth-shadow.c auth-skey.c auth.c auth1.c auth2-chall.c] [auth2-hostbased.c auth2-kbdint.c auth2-none.c auth2-passwd.c] [auth2-pubkey.c auth2.c authfd.c authfile.c bufaux.c buffer.c] [canohost.c channels.c cipher-3des1.c cipher-acss.c cipher-aes.c] [cipher-bf1.c cipher-ctr.c cipher.c cleanup.c clientloop.c compat.c] [compress.c deattack.c dh.c dispatch.c dns.c entropy.c fatal.c] [groupaccess.c hostfile.c includes.h kex.c kexdh.c kexdhc.c] [kexdhs.c kexgex.c kexgexc.c kexgexs.c key.c log.c loginrec.c] [loginrec.h logintest.c mac.c match.c md-sha256.c md5crypt.c misc.c] [monitor.c monitor_fdpass.c monitor_mm.c monitor_wrap.c msg.c] [nchan.c packet.c progressmeter.c readconf.c readpass.c rsa.c] [scard.c scp.c servconf.c serverloop.c session.c sftp-client.c] [sftp-common.c sftp-glob.c sftp-server.c sftp.c ssh-add.c] [ssh-agent.c ssh-dss.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c] [ssh-rand-helper.c ssh-rsa.c ssh.c sshconnect.c sshconnect1.c] [sshconnect2.c sshd.c sshlogin.c sshpty.c sshtty.c ttymodes.c] [uidswap.c uuencode.c xmalloc.c openbsd-compat/bsd-arc4random.c] [openbsd-compat/bsd-closefrom.c openbsd-compat/bsd-cygwin_util.c] [openbsd-compat/bsd-getpeereid.c openbsd-compat/bsd-misc.c] [openbsd-compat/bsd-nextstep.c openbsd-compat/bsd-snprintf.c] [openbsd-compat/bsd-waitpid.c openbsd-compat/fake-rfc2553.c] RCSID() can die
* - (dtucker) [openbsd-compat/sigact.c] Update from OpenBSD 1.3 -> 1.4.Darren Tucker2005-11-101-2/+2
| | | | Id and copyright sync only, there were no substantial changes we need.
* - (djm) [acconfig.h configure.ac openbsd-compat/Makefile.inDamien Miller2004-08-151-0/+100
openbsd-compat/bsd-closefrom.c openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h openbsd-compat/openbsd-compat.h] Use smarter closefrom() replacement from sudo; ok dtucker@