summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/rcmdsh.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-5/+5
| | | | | | 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.
* Use getaddrinfo() instead of the non-standard gethostbyname2().millert2016-05-281-5/+14
| | | | OK deraadt@ jca@ jung@ florian@
* Use reentrant versions of getpw{nam,uid} and getgr{nam,gid} withinmillert2015-11-241-4/+5
| | | | | | | libc to avoid reusing the static buffers returned by the non-reentrant versions. Since this is inside libc we can use constants for the buffer sizes instead of having to call sysconf(). OK guenther@ deraadt@
* delete old lint ARGSUSED commentsguenther2015-11-011-2/+1
|
* Use waitpid() instead of wait() to avoid returning early from another childguenther2015-10-231-2/+3
| | | | | | exiting, and loop the waitpid() on EINTR ok deraadt@ millert@
* Wrap <unistd.h> so that internal calls go direct and they're all weak symbolsguenther2015-09-121-1/+2
| | | | Delete unused 'fd' argument from internal function oldttyname()
* Make rcmdsh(3) not fail if it is passed a non resolvable hostname.halex2015-03-231-7/+4
| | | | | | | Instead, silently ignore the fact and instead let the underlying ssh (or $RSH) command handle it. ok millert@
* uses ssh these days, not rsh; ok tedujmc2014-04-241-2/+2
|
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-2/+2
|
* zap rcsid.espie2005-08-061-5/+1
| | | | | | | split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used. okay deraadt@, krw@
* ansify. ok deraadt@ moritz@otto2005-03-251-7/+4
|
* let rcmdsh work on hosts that don't have an ipv4 address.marc2004-04-011-3/+4
| | | | If it works it is fine with me -- millert@
* Add support for command line args in rshprog, e.g. "ssh -C".millert2003-05-051-8/+47
|
* Tack on MagniComp (BSD) license since this originally came from rdist.millert2002-03-121-2/+30
|
* more pid_t usederaadt2002-01-021-3/+4
|
* Use PF_UNSPEC as proto in socketpair() instead of just 0 for clarity.millert1998-04-251-3/+3
|
* Don't do a gethostbyname() on "localhost" since we need it tomillert1997-07-231-6/+8
| | | | | be unmolested when we test whether or not to use a local shell instead of rsh.
* Remove dead codetholo1996-09-151-6/+8
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Don't dup stderr, you lose error messages and rsh does it for us anyway.millert1996-09-011-3/+3
|
* Adds rcmdsh() -- rcmd-alike using rsh (or specified shell).millert1996-08-221-0/+120