diff options
Diffstat (limited to 'debian/patches/copy-id-restorecon.patch')
-rw-r--r-- | debian/patches/copy-id-restorecon.patch | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/debian/patches/copy-id-restorecon.patch b/debian/patches/copy-id-restorecon.patch deleted file mode 100644 index d26680c4a..000000000 --- a/debian/patches/copy-id-restorecon.patch +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | Description: Call restorecon on copied ~/.ssh/authorized_keys if possible | ||
2 | Author: Tomas Mraz <tmraz@fedoraproject.org> | ||
3 | Bug-Debian: http://bugs.debian.org/658675 | ||
4 | Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=739989 | ||
5 | Last-Update: 2012-08-24 | ||
6 | |||
7 | Index: b/contrib/ssh-copy-id | ||
8 | =================================================================== | ||
9 | --- a/contrib/ssh-copy-id | ||
10 | +++ b/contrib/ssh-copy-id | ||
11 | @@ -41,7 +41,7 @@ | ||
12 | # strip any trailing colon | ||
13 | host=`echo $1 | sed 's/:$//'` | ||
14 | |||
15 | -{ eval "$GET_ID" ; } | ssh $host "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys" || exit 1 | ||
16 | +{ eval "$GET_ID" ; } | ssh $host "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys && (test -x /sbin/restorecon && /sbin/restorecon ~/.ssh ~/.ssh/authorized_keys >/dev/null 2>&1 || true)" || exit 1 | ||
17 | |||
18 | cat <<EOF | ||
19 | Now try logging into the machine, with "ssh '$host'", and check in: | ||