Systemd/src/systemd
Zbigniew Jędrzejewski-Szmek 73a99163a7 coredump,catalog: give better notice when a core file is truncated
coredump had code to check if copy_bytes() hit the max_bytes limit,
and refuse further processing in that case.
But in 84ee096044, the return convention for copy_bytes() was changed
from -EFBIG to 1 for the case when the limit is hit, so the condition
check in coredump couldn't ever trigger.
But it seems that *do* want to process such truncated cores [1].
So change the code to detect truncation properly, but instead of
returning an error, give a nice log entry.

[1] https://github.com/systemd/systemd/issues/3883#issuecomment-239106337

Should fix (or at least alleviate) #3883.
2016-09-28 23:50:29 +02:00
..
_sd-common.h headers: use __inline__ instead of inline 2016-03-11 13:41:49 -05:00
Makefile build-sys: add stub makefiles to subdirs 2012-01-05 16:29:21 +01:00
sd-bus-protocol.h headers: remove commas at end of enum lists 2016-03-11 13:50:56 -05:00
sd-bus-vtable.h headers: remove commas at end of enum lists 2016-03-11 13:50:56 -05:00
sd-bus.h sd-bus: optionally, exit process or event loop on disconnect 2016-08-22 17:31:41 +02:00
sd-daemon.h watchdog: Support changing watchdog_usec during runtime (#3492) 2016-06-22 13:26:05 +02:00
sd-device.h include sys/sysmacros.h in more places 2016-03-14 23:29:10 -04:00
sd-dhcp-client.h sd-network: rename "index" field of the various clients to "ifindex" 2016-05-26 15:34:42 +02:00
sd-dhcp-lease.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
sd-dhcp-server.h networkd: Add EmitRouter= option for DHCP Server (#3251) 2016-05-17 19:34:25 -04:00
sd-dhcp6-client.h sd-network: rename "index" field of the various clients to "ifindex" 2016-05-26 15:34:42 +02:00
sd-dhcp6-lease.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
sd-event.h sd-event: expose the event loop iteration counter via sd_event_get_iteration() (#3631) 2016-06-30 21:25:07 +02:00
sd-hwdb.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
sd-id128.h headers: use __inline__ instead of inline 2016-03-11 13:41:49 -05:00
sd-ipv4acd.h ipv4acd: rename "ll" parameter to "acd" everywhere 2016-05-26 15:34:43 +02:00
sd-ipv4ll.h ipv4ll: change "seed" parameter to be uint64_t 2016-05-26 15:34:43 +02:00
sd-journal.h sd-journal: "soft" deprecate sd_journal_open_container() 2016-04-25 19:29:01 +02:00
sd-lldp.h lldp: include sys/types.h in sd-lldp.h 2016-06-06 19:59:08 +02:00
sd-login.h Typo 2016-02-11 21:52:02 -05:00
sd-messages.h coredump,catalog: give better notice when a core file is truncated 2016-09-28 23:50:29 +02:00
sd-ndisc.h network: beef up ipv6 RA support considerably 2016-06-06 20:11:38 +02:00
sd-netlink.h sd-netlink: fix sd_netlink_inc_rcvbuf() prototype 2016-06-03 19:20:00 +02:00
sd-network.h networkd: rework how carrier bindings are serialized 2016-02-21 20:40:57 +01:00
sd-path.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
sd-resolve.h libsystemd-network: sd-event uses 64bit priorities, expose them in the APIs as such 2016-02-20 22:42:29 +01:00
sd-utf8.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00