Fixed incorrect interpretation of relative path for
AuthorizedKeysFile (BZ #735521)
This commit is contained in:
parent
1829b52a19
commit
83d60c4dec
11
cloud-init-0.6.3-lp970071.patch
Normal file
11
cloud-init-0.6.3-lp970071.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- cloud-init-0.6.3-bzr532.orig/cloudinit/SshUtil.py 2012-03-05 14:05:34.000000000 -0500
|
||||||
|
+++ cloud-init-0.6.3-bzr532/cloudinit/SshUtil.py 2012-03-31 15:21:30.365271359 -0400
|
||||||
|
@@ -155,6 +155,8 @@
|
||||||
|
akeys = ssh_cfg.get("AuthorizedKeysFile", "%h/.ssh/authorized_keys")
|
||||||
|
akeys = akeys.replace("%h", pwent.pw_dir)
|
||||||
|
akeys = akeys.replace("%u", user)
|
||||||
|
+ if not akeys.startswith('/'):
|
||||||
|
+ akeys = os.path.join(pwent.pw_dir, akeys)
|
||||||
|
authorized_keys = akeys
|
||||||
|
except Exception:
|
||||||
|
authorized_keys = '%s/.ssh/authorized_keys' % pwent.pw_dir
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: cloud-init
|
Name: cloud-init
|
||||||
Version: 0.6.3
|
Version: 0.6.3
|
||||||
Release: 0.1.bzr532%{?dist}
|
Release: 0.2.bzr532%{?dist}
|
||||||
Summary: Cloud instance init scripts
|
Summary: Cloud instance init scripts
|
||||||
|
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -16,6 +16,8 @@ Patch0: cloud-init-0.6.3-fedora.patch
|
|||||||
# Make runparts() work on Fedora
|
# Make runparts() work on Fedora
|
||||||
# https://bugs.launchpad.net/cloud-init/+bug/934404
|
# https://bugs.launchpad.net/cloud-init/+bug/934404
|
||||||
Patch1: cloud-init-0.6.3-no-runparts.patch
|
Patch1: cloud-init-0.6.3-no-runparts.patch
|
||||||
|
# https://bugs.launchpad.net/cloud-init/+bug/970071
|
||||||
|
Patch2: cloud-init-0.6.3-lp970071.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -50,6 +52,7 @@ ssh keys and to let the user run various scripts.
|
|||||||
%setup -q -n %{name}-%{version}-bzr532
|
%setup -q -n %{name}-%{version}-bzr532
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
%patch1 -p0
|
%patch1 -p0
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
cp -p %{SOURCE2} README.fedora
|
cp -p %{SOURCE2} README.fedora
|
||||||
|
|
||||||
@ -131,6 +134,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 31 2012 Andy Grimm <agrimm@gmail.com> - 0.6.3-0.2.bzr532
|
||||||
|
- Fixed incorrect interpretation of relative path for
|
||||||
|
AuthorizedKeysFile (BZ #735521)
|
||||||
|
|
||||||
* Mon Mar 5 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.3-0.1.bzr532
|
* Mon Mar 5 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.3-0.1.bzr532
|
||||||
- Rebased against upstream rev 532
|
- Rebased against upstream rev 532
|
||||||
- Fixed runparts() incompatibility with Fedora
|
- Fixed runparts() incompatibility with Fedora
|
||||||
|
Loading…
Reference in New Issue
Block a user