chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
main: check if we have a valid PID before getting the name of it
[elogind.git]
/
src
/
tmpfiles.c
diff --git
a/src/tmpfiles.c
b/src/tmpfiles.c
index 917747a4a48548237549ac743c710e0a11172ac7..68af37aab0eb43f27edb0fb3062a0ff08cbebb3d 100644
(file)
--- a/
src/tmpfiles.c
+++ b/
src/tmpfiles.c
@@
-507,7
+507,7
@@
static int create_item(Item *i) {
break;
}
break;
}
- if ((r = label_fix(i->path)) < 0)
+ if ((r = label_fix(i->path
, false
)) < 0)
goto finish;
log_debug("%s created successfully.", i->path);
goto finish;
log_debug("%s created successfully.", i->path);
@@
-775,7
+775,8
@@
static int scandir_filter(const struct dirent *d) {
return 0;
if (d->d_type != DT_REG &&
return 0;
if (d->d_type != DT_REG &&
- d->d_type != DT_LNK)
+ d->d_type != DT_LNK &&
+ d->d_type != DT_UNKNOWN)
return 0;
return endswith(d->d_name, ".conf");
return 0;
return endswith(d->d_name, ".conf");
@@
-852,7
+853,7
@@
static int parse_argv(int argc, char *argv[]) {
}
if (!arg_clean && !arg_create && !arg_remove) {
}
if (!arg_clean && !arg_create && !arg_remove) {
- log_error("You need to specify at leat one of --clean, --create or --remove.");
+ log_error("You need to specify at lea
s
t one of --clean, --create or --remove.");
return -EINVAL;
}
return -EINVAL;
}