chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
833fce2
)
tmpfiles: simplification
author
Lennart Poettering
<lennart@poettering.net>
Wed, 19 Feb 2014 16:52:41 +0000
(17:52 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 19 Feb 2014 16:53:50 +0000
(17:53 +0100)
src/tmpfiles/tmpfiles.c
patch
|
blob
|
history
diff --git
a/src/tmpfiles/tmpfiles.c
b/src/tmpfiles/tmpfiles.c
index b0efa37e20c514984ba06767b6c72b1265495467..6e36dc79ddd9bf738cb221a63dd78ce8aa8a64ca 100644
(file)
--- a/
src/tmpfiles/tmpfiles.c
+++ b/
src/tmpfiles/tmpfiles.c
@@
-731,7
+731,7
@@
static int create_item(Item *i) {
break;
case CREATE_SYMLINK: {
-
char *x
;
+
_cleanup_free_ char *x = NULL
;
label_context_set(i->path, S_IFLNK);
r = symlink(i->argument, i->path);
@@
-751,12
+751,10
@@
static int create_item(Item *i) {
}
if (!streq(i->argument, x)) {
- free(x);
log_error("%s is not the right symlinks.", i->path);
return -EEXIST;
}
- free(x);
break;
}