History log of /openbsd/libexec/ftpd/popen.c (Results 1 – 25 of 31)
Revision Date Author Comments
# 1a0a232e 17-Feb-2023 miod <miod@openbsd.org>

Remove unused variables; ok millert@


# f0617203 27-Dec-2020 florian <florian@openbsd.org>

We know about optreset from unistd.h.
From Jan Stary, thanks.
OK martijn


# bca58876 15-Jan-2020 jan <jan@openbsd.org>

Simplify globbing of ftpd(8)s list and nlst commands.
Also avoid command option injection for ls(1).

OK martijn@


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# 7a7d71fb 08-May-2019 tedu <tedu@openbsd.org>

rm dead code and simplify ftpd_popen. this code has only called
its statically linked ls_main for some time now.
from Jan Klemkow
ok deraadt


# 6baee9ff 29-Feb-2016 jca <jca@openbsd.org>

Kill unused variable.


# 1b81cd4f 04-Oct-2015 tedu <tedu@openbsd.org>

fix custom popen to return pid to caller instead of tracking in a giant
array. this implies we can't use a function pointer for close, but also
means we get to repair some abuse of the comma operator

fix custom popen to return pid to caller instead of tracking in a giant
array. this implies we can't use a function pointer for close, but also
means we get to repair some abuse of the comma operator.
ok miod

show more ...


# 32387799 08-Mar-2010 kettenis <kettenis@openbsd.org>

Check that gl_pathc is bigger than zero before derefencing gl_pathv. While
this shouldn't happen since we specifiy GLOB_NOMAGIC, it doesn't hurt to be
paranoid, even if we fix the bug in glob(3) tha

Check that gl_pathc is bigger than zero before derefencing gl_pathv. While
this shouldn't happen since we specifiy GLOB_NOMAGIC, it doesn't hurt to be
paranoid, even if we fix the bug in glob(3) that causes gl_pathc to be zero
even if we specify GLOB_NOMAGIC.

ok deraadt@

show more ...


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# 92f68775 30-Jun-2008 ragge <ragge@openbsd.org>

Include file order must be "monitor.h" before "extern.h" otherwise enum
auth_ret is referenced before it is declared, which is not allowed by C99.

Ok krw@, millert@, gilles@


# ad4287e4 02-Apr-2006 djm <djm@openbsd.org>

malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaks
suggested by kjell@; ok otto@ pat@ millert@ jaredy@


# 5c7d4e7c 10-Dec-2003 deraadt <deraadt@openbsd.org>

spacing


# 6bcb9e83 11-Jun-2003 deraadt <deraadt@openbsd.org>

ansi cleanup; ok ian markus


# e33d3bd3 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.


# 0fe9133c 02-Jul-2002 danh <danh@openbsd.org>

* use lostconn() as the SIGALRM handler in receive_data() as originally
done by downsj@ in revision 1.54.

* some -Wall cleanup
- only declare check_host() if TCPWRAPPERS is defined.
- use sock

* use lostconn() as the SIGALRM handler in receive_data() as originally
done by downsj@ in revision 1.54.

* some -Wall cleanup
- only declare check_host() if TCPWRAPPERS is defined.
- use socklen_t where appropriate instead of int (pointer signedness
warnings).
- {u_}char * pointer signedness warnings.

ok millert@

show more ...


# 73758566 29-May-2002 mpech <mpech@openbsd.org>

More pid_t cleanup. Since 'pid' is pid_t we should:
o) in ftpd_popen() convert 'pids' from int to pid_t too;
o) in ftpd_pclose() return '-1', not pid_t, because it returns int;

millert@ ok


# 13ee8a54 26-May-2002 deraadt <deraadt@openbsd.org>

pid_t cleanup


# 098b785a 23-Jan-2002 mpech <mpech@openbsd.org>

Use always '.' in the end of the fatal() message. Consistency is good.

millert@ ok.


# 9dcba242 18-Mar-2001 deraadt <deraadt@openbsd.org>

use GLOB_LIMIT


# 98d80c97 24-Jan-2001 deraadt <deraadt@openbsd.org>

proto ls_main()


# b1750805 08-Dec-1999 itojun <itojun@openbsd.org>

IPv6 support from KAME.
XXX kerberos and tcp_wrapper needs checking


# 1a8e1fdf 26-Feb-1999 art <art@openbsd.org>

implement internal ls


# 1d5555bf 29-Jun-1997 deraadt <deraadt@openbsd.org>

partial Wall


# ae4e5bf9 07-Dec-1996 bitblt <bitblt@openbsd.org>

Checks to see that strdup() worked, dies with error message on failure.


# 2062b4da 25-Oct-1996 imp <imp@openbsd.org>

Spacing nits


12