Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
56698177
Commit
56698177
authored
Sep 26, 2013
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop now-useless have_tpath bool
(Which will also break failure-to-build in the !HAVE_LIBGNUTLS case) Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
85db5535
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
lxccontainer.c
src/lxc/lxccontainer.c
+4
-8
No files found.
src/lxc/lxccontainer.c
View file @
56698177
...
...
@@ -881,7 +881,6 @@ bool prepend_lxc_header(char *path, const char *t, char *const argv[])
int
i
;
unsigned
char
md_value
[
SHA_DIGEST_LENGTH
];
char
*
tpath
;
bool
have_tpath
=
false
;
#endif
process_lock
();
...
...
@@ -916,7 +915,6 @@ bool prepend_lxc_header(char *path, const char *t, char *const argv[])
goto
out_free_contents
;
}
have_tpath
=
true
;
ret
=
sha1sum_file
(
tpath
,
md_value
);
if
(
ret
<
0
)
{
ERROR
(
"Error getting sha1sum of %s"
,
tpath
);
...
...
@@ -944,12 +942,10 @@ bool prepend_lxc_header(char *path, const char *t, char *const argv[])
fprintf
(
f
,
"
\n
"
);
}
#if HAVE_LIBGNUTLS
if
(
have_tpath
)
{
fprintf
(
f
,
"# Template script checksum (SHA-1): "
);
for
(
i
=
0
;
i
<
SHA_DIGEST_LENGTH
;
i
++
)
fprintf
(
f
,
"%02x"
,
md_value
[
i
]);
fprintf
(
f
,
"
\n
"
);
}
fprintf
(
f
,
"# Template script checksum (SHA-1): "
);
for
(
i
=
0
;
i
<
SHA_DIGEST_LENGTH
;
i
++
)
fprintf
(
f
,
"%02x"
,
md_value
[
i
]);
fprintf
(
f
,
"
\n
"
);
#endif
if
(
fwrite
(
contents
,
1
,
flen
,
f
)
!=
flen
)
{
SYSERROR
(
"Writing original contents"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment