diff options
author | Colin Watson <cjwatson@debian.org> | 2017-10-04 11:23:58 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-10-04 11:23:58 +0100 |
commit | 62f54f20bf351468e0124f63cc2902ee40d9b0e9 (patch) | |
tree | 3e090f2711b94ca5029d3fa3e8047b1ed1448b1f /contrib | |
parent | 6fabaf6fd9b07cc8bc6a17c9c4a5b76849cfc874 (diff) | |
parent | 66bf74a92131b7effe49fb0eefe5225151869dc5 (diff) |
Import openssh_7.6p1.orig.tar.gz
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/aix/README | 2 | ||||
-rw-r--r-- | contrib/redhat/openssh.spec | 2 | ||||
-rw-r--r-- | contrib/ssh-copy-id | 15 | ||||
-rw-r--r-- | contrib/suse/openssh.spec | 2 |
4 files changed, 14 insertions, 7 deletions
diff --git a/contrib/aix/README b/contrib/aix/README index 2a299350a..4a11ae703 100644 --- a/contrib/aix/README +++ b/contrib/aix/README | |||
@@ -35,7 +35,7 @@ The script treats all packages as USR packages (not ROOT+USR when | |||
35 | appropriate). It seems to work, though...... | 35 | appropriate). It seems to work, though...... |
36 | 36 | ||
37 | If there are any patches to this that have not yet been integrated they | 37 | If there are any patches to this that have not yet been integrated they |
38 | may be found at http://www.zip.com.au/~dtucker/openssh/. | 38 | may be found at http://www.dtucker.net/openssh/. |
39 | 39 | ||
40 | 40 | ||
41 | Disclaimer: | 41 | Disclaimer: |
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index 7de45457a..a96a36e49 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec | |||
@@ -1,4 +1,4 @@ | |||
1 | %define ver 7.5p1 | 1 | %define ver 7.6p1 |
2 | %define rel 1 | 2 | %define rel 1 |
3 | 3 | ||
4 | # OpenSSH privilege separation requires a user & group ID | 4 | # OpenSSH privilege separation requires a user & group ID |
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index bef5c95d9..b83b83619 100644 --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # Copyright (c) 1999-2013 Philip Hands <phil@hands.com> | 3 | # Copyright (c) 1999-2016 Philip Hands <phil@hands.com> |
4 | # 2013 Martin Kletzander <mkletzan@redhat.com> | 4 | # 2013 Martin Kletzander <mkletzan@redhat.com> |
5 | # 2010 Adeodato =?iso-8859-1?Q?Sim=F3?= <asp16@alu.ua.es> | 5 | # 2010 Adeodato =?iso-8859-1?Q?Sim=F3?= <asp16@alu.ua.es> |
6 | # 2010 Eric Moret <eric.moret@gmail.com> | 6 | # 2010 Eric Moret <eric.moret@gmail.com> |
@@ -56,7 +56,8 @@ then | |||
56 | fi | 56 | fi |
57 | fi | 57 | fi |
58 | 58 | ||
59 | DEFAULT_PUB_ID_FILE="$HOME/$(cd "$HOME" ; ls -t .ssh/id*.pub 2>/dev/null | grep -v -- '-cert.pub$' | head -n 1)" | 59 | most_recent_id="$(cd "$HOME" ; ls -t .ssh/id*.pub 2>/dev/null | grep -v -- '-cert.pub$' | head -n 1)" |
60 | DEFAULT_PUB_ID_FILE="${most_recent_id:+$HOME/}$most_recent_id" | ||
60 | 61 | ||
61 | usage () { | 62 | usage () { |
62 | printf 'Usage: %s [-h|-?|-f|-n] [-i [identity_file]] [-p port] [[-o <ssh -o options>] ...] [user@]hostname\n' "$0" >&2 | 63 | printf 'Usage: %s [-h|-?|-f|-n] [-i [identity_file]] [-p port] [[-o <ssh -o options>] ...] [user@]hostname\n' "$0" >&2 |
@@ -74,6 +75,11 @@ quote() { | |||
74 | use_id_file() { | 75 | use_id_file() { |
75 | local L_ID_FILE="$1" | 76 | local L_ID_FILE="$1" |
76 | 77 | ||
78 | if [ -z "$L_ID_FILE" ] ; then | ||
79 | printf "%s: ERROR: no ID file found\n" "$0" | ||
80 | exit 1 | ||
81 | fi | ||
82 | |||
77 | if expr "$L_ID_FILE" : ".*\.pub$" >/dev/null ; then | 83 | if expr "$L_ID_FILE" : ".*\.pub$" >/dev/null ; then |
78 | PUB_ID_FILE="$L_ID_FILE" | 84 | PUB_ID_FILE="$L_ID_FILE" |
79 | else | 85 | else |
@@ -287,9 +293,10 @@ case "$REMOTE_VERSION" in | |||
287 | *) | 293 | *) |
288 | # Assuming that the remote host treats ~/.ssh/authorized_keys as one might expect | 294 | # Assuming that the remote host treats ~/.ssh/authorized_keys as one might expect |
289 | populate_new_ids 0 | 295 | populate_new_ids 0 |
290 | # in ssh below - to defend against quirky remote shells: use 'exec sh -c' to get POSIX; 'cd' to be at $HOME; and all on one line, because tcsh. | 296 | # in ssh below - to defend against quirky remote shells: use 'exec sh -c' to get POSIX; |
297 | # 'cd' to be at $HOME; add a newline if it's missing; and all on one line, because tcsh. | ||
291 | [ "$DRY_RUN" ] || printf '%s\n' "$NEW_IDS" | \ | 298 | [ "$DRY_RUN" ] || printf '%s\n' "$NEW_IDS" | \ |
292 | ssh "$@" "exec sh -c 'cd ; umask 077 ; mkdir -p .ssh && cat >> .ssh/authorized_keys || exit 1 ; if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi'" \ | 299 | ssh "$@" "exec sh -c 'cd ; umask 077 ; mkdir -p .ssh && { [ -z "'`tail -1c .ssh/authorized_keys 2>/dev/null`'" ] || echo >> .ssh/authorized_keys ; } && cat >> .ssh/authorized_keys || exit 1 ; if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi'" \ |
293 | || exit 1 | 300 | || exit 1 |
294 | ADDED=$(printf '%s\n' "$NEW_IDS" | wc -l) | 301 | ADDED=$(printf '%s\n' "$NEW_IDS" | wc -l) |
295 | ;; | 302 | ;; |
diff --git a/contrib/suse/openssh.spec b/contrib/suse/openssh.spec index e62be39d0..fdb3578cb 100644 --- a/contrib/suse/openssh.spec +++ b/contrib/suse/openssh.spec | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | Summary: OpenSSH, a free Secure Shell (SSH) protocol implementation | 14 | Summary: OpenSSH, a free Secure Shell (SSH) protocol implementation |
15 | Name: openssh | 15 | Name: openssh |
16 | Version: 7.5p1 | 16 | Version: 7.6p1 |
17 | URL: https://www.openssh.com/ | 17 | URL: https://www.openssh.com/ |
18 | Release: 1 | 18 | Release: 1 |
19 | Source0: openssh-%{version}.tar.gz | 19 | Source0: openssh-%{version}.tar.gz |