Darren Tucker
a788de2066
- dtucker@cvs.openbsd.org 2010/01/14 23:41:49
...
[sftp-common.c]
use user_from{uid,gid} to lookup up ids since it keeps a small cache.
ok djm
2010-01-15 11:45:33 +11:00
Darren Tucker
94881d8dbb
- djm@cvs.openbsd.org 2010/01/13 23:47:26
...
[auth.c]
when using ChrootDirectory, make sure we test for the existence of the
user's shell inside the chroot; bz #1679 , patch from alex AT rtfs.hu;
ok dtucker
2010-01-15 11:44:46 +11:00
Darren Tucker
75fe626489
- jmc@cvs.openbsd.org 2010/01/13 12:48:34
...
[sftp.1 sftp.c]
sftp.1: put ls -h in the right place
sftp.c: as above, plus add -p to get/put, and shorten their arg names
to keep the help usage nicely aligned
ok djm
2010-01-15 11:42:51 +11:00
Damien Miller
6abc9f68aa
- (djm) [platform.h] Add missing prototype for
...
platform_krb5_get_principal_name
2010-01-14 12:44:16 +11:00
Tim Rice
d4a7fcbc46
- (tim) [defines.h] openbsd-compat/readpassphrase.c now needs _NSIG.
...
feedback and ok dtucker@
2010-01-13 15:44:34 -08:00
Darren Tucker
096630d06c
- (dtucker) [sftp-common.c] Wrap include of util.h in an ifdef.
2010-01-13 23:00:38 +11:00
Darren Tucker
9c3ba07f60
- djm@cvs.openbsd.org 2010/01/13 04:10:50
...
[sftp.c]
don't append a space after inserting a completion of a directory (i.e.
a path ending in '/') for a slightly better user experience; ok dtucker@
2010-01-13 22:45:03 +11:00
Darren Tucker
88b6fb2b55
- djm@cvs.openbsd.org 2010/01/13 03:48:13
...
[servconf.c servconf.h sshd.c]
avoid run-time failures when specifying hostkeys via a relative
path by prepending the cwd in these cases; bz#1290; ok dtucker@
2010-01-13 22:44:29 +11:00
Darren Tucker
2901e2daeb
- djm@cvs.openbsd.org 2010/01/13 01:40:16
...
[sftp.c sftp-server.c sftp.1 sftp-common.c sftp-common.h]
support '-h' (human-readable units) for sftp's ls command, just like
ls(1); ok dtucker@
2010-01-13 22:44:06 +11:00
Darren Tucker
daaa450051
- dtucker@cvs.openbsd.org 2010/01/13 01:20:20
...
[canohost.c ssh-keysign.c sshconnect2.c]
Make HostBased authentication work with a ProxyCommand. bz #1569 , patch
from imorgan at nas nasa gov, ok djm@
2010-01-13 22:43:33 +11:00
Darren Tucker
561724f38d
- dtucker@cvs.openbsd.org 2010/01/13 01:10:56
...
[key.c]
Ignore and log any Protocol 1 keys where the claimed size is not equal to
the actual size. Noted by Derek Martin, ok djm@
2010-01-13 22:43:05 +11:00
Darren Tucker
e2b3674172
- (dtucker) OpenBSD CVS Sync
...
- dtucker@cvs.openbsd.org 2010/01/13 00:19:04
[sshconnect.c auth.c]
Fix a couple of typos/mispellings in comments
2010-01-13 22:42:34 +11:00
Darren Tucker
d59487a33b
- (dtucker) [openbsd-compat/readpassphrase.c] Update to OpenBSD's r1.22.
...
Fixes bz #1590 , where sometimes you could not interrupt a connection while
ssh was prompting for a passphrase or password.
2010-01-13 21:32:44 +11:00
Darren Tucker
1035cb4729
- (dtucker) [openbsd-compat/readpassphrase.c] Update to OpenBSD's r1.21.
2010-01-13 18:32:59 +11:00
Darren Tucker
ab3c2cab18
- (dtucker) [openbsd-compat/readpassphrase.c] Resync against OpenBSD's r1.18: missing restore of SIGTTOU and some whitespace.
2010-01-13 18:27:32 +11:00
Darren Tucker
a8f20cff82
- (dtucker) [monitor_fdpass.c] Wrap poll.h include in ifdefs.
2010-01-13 10:54:46 +11:00
Darren Tucker
09aa4c000e
- dtucker@cvs.openbsd.org 2010/01/12 08:33:17
...
[session.c]
Add explicit stat so we reliably detect nologin with bad perms.
ok djm markus
2010-01-12 19:51:48 +11:00
Darren Tucker
ebc71d908c
- djm@cvs.openbsd.org 2010/01/12 01:36:08
...
[buffer.h bufaux.c]
add a buffer_get_string_ptr_ret() that does the same as
buffer_get_string_ptr() but does not fatal() on error; ok dtucker@
2010-01-12 19:45:59 +11:00
Darren Tucker
1b0c2455da
- dtucker@cvs.openbsd.org 2010/01/12 01:31:05
...
[session.c]
Do not allow logins if /etc/nologin exists but is not readable by the user
logging in. Noted by Jan.Pechanec at Sun, ok djm@ deraadt@
2010-01-12 19:45:26 +11:00
Darren Tucker
c6cc90b465
- djm@cvs.openbsd.org 2010/01/12 00:59:29
...
[roaming_common.c]
delete with extreme prejudice a debug() that fired with every keypress;
ok dtucker deraadt
2010-01-12 19:43:46 +11:00
Darren Tucker
e371a13238
- djm@cvs.openbsd.org 2010/01/12 00:58:25
...
[monitor_fdpass.c]
avoid spinning when fd passing on nonblocking sockets by calling poll()
in the EINTR/EAGAIN path, much like we do in atomicio; ok dtucker@
2010-01-12 19:43:12 +11:00
Darren Tucker
69c01b1c4a
- dtucker@cvs.openbsd.org 2010/01/12 00:16:47
...
[authfile.c]
Fix bug introduced in r1.78 (incorrect brace location) that broke key auth.
Patch from joachim joachimschipper nl.
2010-01-12 19:42:29 +11:00
Darren Tucker
d04758dc4c
- djm@cvs.openbsd.org 2010/01/11 10:51:07
...
[ssh-keygen.c]
when converting keys, truncate key comments at 72 chars as per RFC4716;
bz#1630 reported by tj AT castaglia.org; ok markus@
2010-01-12 19:41:57 +11:00
Darren Tucker
d4c86b1325
- dtucker@cvs.openbsd.org 2010/01/11 04:46:45
...
[authfile.c sshconnect2.c]
Do not prompt for a passphrase if we fail to open a keyfile, and log the
reason the open failed to debug.
bz #1693 , found by tj AT castaglia org, ok djm@
2010-01-12 19:41:22 +11:00
Darren Tucker
7ad8dd21da
- dtucker@cvs.openbsd.org 2010/01/11 01:39:46
...
[ssh_config channels.c ssh.1 channels.h ssh.c]
Add a 'netcat mode' (ssh -W). This connects stdio on the client to a
single port forward on the server. This allows, for example, using ssh as
a ProxyCommand to route connections via intermediate servers.
bz #1618 , man page help from jmc@, ok markus@
2010-01-12 19:40:27 +11:00
Darren Tucker
43551527dc
- dtucker@cvs.openbsd.org 2010/01/10 07:15:56
...
[auth.c]
Output a debug if we can't open an existing keyfile. bz#1694, ok djm@
2010-01-10 19:27:17 +11:00
Darren Tucker
d3300454d8
- dtucker@cvs.openbsd.org 2010/01/10 03:51:17
...
[servconf.c]
Add ChrootDirectory to sshd.c test-mode output
2010-01-10 19:26:43 +11:00
Darren Tucker
7bd98e7f74
- dtucker@cvs.openbsd.org 2010/01/09 23:04:13
...
[channels.c ssh.1 servconf.c sshd_config.5 sshd.c channels.h servconf.h
ssh-keyscan.1 ssh-keyscan.c readconf.c sshconnect.c misc.c ssh.c
readconf.h scp.1 sftp.1 ssh_config.5 misc.h]
Remove RoutingDomain from ssh since it's now not needed. It can be
replaced with "route exec" or "nc -V" as a proxycommand. "route exec"
also ensures that trafic such as DNS lookups stays withing the specified
routingdomain. For example (from reyk):
# route -T 2 exec /usr/sbin/sshd
or inherited from the parent process
$ route -T 2 exec sh
$ ssh 10.1.2.3
ok deraadt@ markus@ stevesk@ reyk@
2010-01-10 10:31:12 +11:00
Darren Tucker
8c65f646a9
- (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c]
...
Remove hacks add for RoutingDomain in preparation for its removal.
2010-01-10 10:26:57 +11:00
Darren Tucker
269275c90c
- (dtucker) [defines.h] Remove now-undeeded PRIu64 define.
2010-01-09 22:33:37 +11:00
Darren Tucker
2c671bf6a8
- dtucker@cvs.openbsd.org 2010/01/09 11:17:56
...
[sshd.c]
Afer sshd receives a SIGHUP, ignore subsequent HUPs while sshd re-execs
itself. Prevents two HUPs in quick succession from resulting in sshd
dying. bz#1692, patch from Colin Watson via Ubuntu.
2010-01-09 22:28:43 +11:00
Darren Tucker
70cc092817
- dtucker@cvs.openbsd.org 2010/01/09 11:13:02
...
[sftp.c]
Prevent sftp from derefing a null pointer when given a "-" without a
command. Also, allow whitespace to follow a "-". bz#1691, path from
Colin Watson via Debian. ok djm@ deraadt@
2010-01-09 22:28:03 +11:00
Darren Tucker
4b28251df4
- dtucker@cvs.openbsd.org 2010/01/09 05:17:00
...
[roaming_client.c]
Remove a PRIu64 format string that snuck in with roaming. ok djm@
2010-01-09 22:27:06 +11:00
Darren Tucker
37c1b3d6fc
- djm@cvs.openbsd.org 2010/01/09 05:04:24
...
[mux.c sshpty.h clientloop.c sshtty.c]
quell tc[gs]etattr warnings when forcing a tty (ssh -tt), since we
usually don't actually have a tty to read/set; bz#1686 ok dtucker@
2010-01-09 22:26:23 +11:00
Darren Tucker
838891fe85
- jmc@cvs.openbsd.org 2010/01/09 03:36:00
...
[sftp-server.8]
bad place to forget a comma...
2010-01-09 22:25:46 +11:00
Darren Tucker
a2e10485c5
- djm@cvs.openbsd.org 2010/01/09 00:57:10
...
[PROTOCOL]
tweak language
2010-01-09 22:25:14 +11:00
Darren Tucker
db7bf82544
- djm@cvs.openbsd.org 2010/01/09 00:20:26
...
[sftp-server.c sftp-server.8]
add a 'read-only' mode to sftp-server(8) that disables open in write mode
and all other fs-modifying protocol methods. bz#430 ok dtucker@
2010-01-09 22:24:33 +11:00
Darren Tucker
0b8a2262ac
- (dtucker) [loginrec.c] Use the SUSv3 specified name for the user name
...
when using utmpx. Patch from Ed Schouten.
2010-01-09 18:18:04 +11:00
Darren Tucker
11b5c07941
- (dtucker) [roaming_client.c] Wrap inttypes.h in an ifdef.
2010-01-09 16:40:48 +11:00
Darren Tucker
709d0ce672
- (dtucker) [defines.h] define PRIu64 for platforms that don't have it.
2010-01-09 09:25:54 +11:00
Darren Tucker
9eba40cec9
- (dtucker) Wrap use of IPPROTO_IPV6 in an ifdef for platforms that don't
...
have it.
2010-01-09 09:02:07 +11:00
Darren Tucker
340d1688e6
- dtucker@cvs.openbsd.org 2010/01/08 21:50:49
...
[sftp.c]
Fix two warnings: possibly used unitialized and use a nul byte instead of
NULL pointer. ok djm@
2010-01-09 08:54:31 +11:00
Darren Tucker
1a8f535b97
- (dtucker) [roaming_serv.c] Include includes.h for u_intXX_t types.
2010-01-08 20:45:42 +11:00
Darren Tucker
cb5a1b6f70
- (dtucker] [misc.c] Shrink the area covered by USE_ROUTINGDOMAIN more
...
to eliminate an unused variable warning.
2010-01-08 20:09:01 +11:00
Darren Tucker
e83c3ea4b8
- (dtucker) [misc.c] Move the routingdomain ifdef to allow the socket to
...
be created.
2010-01-08 20:03:56 +11:00
Darren Tucker
843f0fa16d
- (dtucker) [sftp.c] Expand ifdef for libedit to cover complete_is_remote
...
too.
2010-01-08 19:56:33 +11:00
Darren Tucker
1f5e3dc274
- (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c] Make
...
RoutingDomain an unsupported option on platforms that don't have it.
2010-01-08 19:53:52 +11:00
Darren Tucker
e67f7db968
- (dtucker) [sftp.c] ifdef out the sftp completion bits for platforms that
...
don't have libedit.
2010-01-08 19:50:02 +11:00
Darren Tucker
dce7a92c7a
- (dtucker) [Makefile.in] .c files do not belong in the OBJ lines.
2010-01-08 19:27:57 +11:00
Darren Tucker
8cbd403fde
- (dtucker) [Makefile.in added roaming_client.c roaming_serv.c] Import new
...
files for roaming and add to Makefile.
2010-01-08 19:13:25 +11:00