7063139ce7
- Add 0001-add-sparse-support-to-detect-endianness-bug.patch: fix endianness error, preventing journal to work properly on ppc. - Add fixppc.patch: fix build and warnings on ppc. OBS-URL: https://build.opensuse.org/request/show/110375 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=94
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
diff --git a/src/journal/cat.c b/src/journal/cat.c
|
|
index 31d76f3..8a51fb7 100644
|
|
--- a/src/journal/cat.c
|
|
+++ b/src/journal/cat.c
|
|
@@ -33,7 +33,7 @@
|
|
#include "build.h"
|
|
|
|
static char *arg_identifier = NULL;
|
|
-static char arg_priority = LOG_INFO;
|
|
+static int8_t arg_priority = LOG_INFO;
|
|
static bool arg_level_prefix = true;
|
|
|
|
static int help(void) {
|
|
diff --git a/src/journal/journald.c b/src/journal/journald.c
|
|
index baad3ab..1899ad6 100644
|
|
--- a/src/journal/journald.c
|
|
+++ b/src/journal/journald.c
|
|
@@ -2144,7 +2144,7 @@ static int process_event(Server *s, struct epoll_event *ev) {
|
|
uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) +
|
|
CMSG_SPACE(sizeof(struct timeval)) +
|
|
CMSG_SPACE(sizeof(int)) +
|
|
- CMSG_SPACE(PAGE_SIZE)]; /* selinux label */
|
|
+ CMSG_SPACE(PATH_MAX)]; /* selinux label */
|
|
} control;
|
|
ssize_t n;
|
|
int v;
|