aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/swupd-server/swupd-server/0004-Fix-regression-that-introduced-a-directory-named.patch
blob: 1b9dac4b41019d14dfad2f9cf08664bc94ccf09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 841418e5e3f40ee5ae492d606d403feef82cdc1c Mon Sep 17 00:00:00 2001
From: Patrick McCarty <patrick.mccarty@intel.com>
Date: Mon, 22 Feb 2016 22:07:08 -0800
Subject: [PATCH] Fix regression that introduced a directory named '/ '

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>

Upstream-Status: Backport (v3.0+)

---
 src/chroot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chroot.c b/src/chroot.c
index cb6a04a..58e1f1a 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -41,7 +41,7 @@ void chroot_create_full(int newversion)
 	struct stat buf;
 	char *full_dir;
 
-	string_or_die(&full_dir, "%s/%i/full/ ", image_dir, newversion);
+	string_or_die(&full_dir, "%s/%i/full/", image_dir, newversion);
 
 	g_mkdir_with_parents(full_dir, S_IRWXU);
 
-- 
2.5.0