chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clear up confusion wrt. ENTRY_SIZE_MAX and DATA_SIZE_MAX
[elogind.git]
/
src
/
journal
/
coredump.c
diff --git
a/src/journal/coredump.c
b/src/journal/coredump.c
index 59c6d4b716b54c31aa9ff8f954e494e0a2e42478..4ac1a41299af2e12292574c7c0b799f53df31580 100644
(file)
--- a/
src/journal/coredump.c
+++ b/
src/journal/coredump.c
@@
-61,8
+61,8
@@
#define JOURNAL_SIZE_MAX ((size_t) (767LU*1024LU*1024LU))
/* Make sure to not make this larger than the maximum journal entry
#define JOURNAL_SIZE_MAX ((size_t) (767LU*1024LU*1024LU))
/* Make sure to not make this larger than the maximum journal entry
- * size. See
ENTRY
_SIZE_MAX in journald-native.c. */
-assert_cc(JOURNAL_SIZE_MAX <=
ENTRY
_SIZE_MAX);
+ * size. See
DATA
_SIZE_MAX in journald-native.c. */
+assert_cc(JOURNAL_SIZE_MAX <=
DATA
_SIZE_MAX);
enum {
INFO_PID,
enum {
INFO_PID,
@@
-120,7
+120,7
@@
static int parse_config(void) {
NULL,
"Coredump\0",
config_item_table_lookup,
NULL,
"Coredump\0",
config_item_table_lookup,
-
(void*)
items,
+ items,
false,
false,
NULL);
false,
false,
NULL);
@@
-402,9
+402,9
@@
static int save_external_coredump(
fail_compressed:
unlink_noerrno(tmp_compressed);
}
fail_compressed:
unlink_noerrno(tmp_compressed);
}
-#endif
uncompressed:
uncompressed:
+#endif
r = fix_permissions(fd, tmp, fn, info, uid);
if (r < 0)
goto fail;
r = fix_permissions(fd, tmp, fn, info, uid);
if (r < 0)
goto fail;