mirror of
https://github.com/systemd/systemd
synced 2026-03-28 09:44:50 +01:00
Compare commits
7 Commits
f782eee68a
...
93caec7ed6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93caec7ed6 | ||
|
|
b6c5a863a5 | ||
|
|
3b55bd2fa9 | ||
|
|
281752e406 | ||
|
|
f0c5e8d452 | ||
|
|
f3b751220b | ||
|
|
00bd9a4a82 |
@ -1,3 +1,5 @@
|
|||||||
|
src/boot/efi/boot.c
|
||||||
|
src/boot/efi/secure-boot.c
|
||||||
src/core/dbus-automount.c
|
src/core/dbus-automount.c
|
||||||
src/core/dbus-device.c
|
src/core/dbus-device.c
|
||||||
src/core/dbus-job.c
|
src/core/dbus-job.c
|
||||||
@ -18,4 +20,5 @@ src/locale/localed.c
|
|||||||
src/timedate/timedated.c
|
src/timedate/timedated.c
|
||||||
units/debug-shell.service.in
|
units/debug-shell.service.in
|
||||||
units/systemd-journald.service.in
|
units/systemd-journald.service.in
|
||||||
|
units/systemd-timesyncd.service.in
|
||||||
units/user@.service.in
|
units/user@.service.in
|
||||||
|
|||||||
9
po/de.po
9
po/de.po
@ -6,13 +6,14 @@
|
|||||||
# Bernd Homuth <dev@hmt.im>, 2015.
|
# Bernd Homuth <dev@hmt.im>, 2015.
|
||||||
# Fabian Affolter <mail@fabian-affolter.ch>, 2020.
|
# Fabian Affolter <mail@fabian-affolter.ch>, 2020.
|
||||||
# Ettore Atalan <atalanttore@googlemail.com>, 2021.
|
# Ettore Atalan <atalanttore@googlemail.com>, 2021.
|
||||||
|
# Christian Wehrli <christian@chw.onl>, 2021.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: systemd master\n"
|
"Project-Id-Version: systemd master\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-01-08 17:48+0100\n"
|
"POT-Creation-Date: 2021-01-08 17:48+0100\n"
|
||||||
"PO-Revision-Date: 2021-08-23 18:04+0000\n"
|
"PO-Revision-Date: 2021-09-16 18:04+0000\n"
|
||||||
"Last-Translator: Ettore Atalan <atalanttore@googlemail.com>\n"
|
"Last-Translator: Christian Wehrli <christian@chw.onl>\n"
|
||||||
"Language-Team: German <https://translate.fedoraproject.org/projects/systemd/"
|
"Language-Team: German <https://translate.fedoraproject.org/projects/systemd/"
|
||||||
"master/de/>\n"
|
"master/de/>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@ -177,7 +178,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/hostname/org.freedesktop.hostname1.policy:51
|
#: src/hostname/org.freedesktop.hostname1.policy:51
|
||||||
msgid "Get product UUID"
|
msgid "Get product UUID"
|
||||||
msgstr ""
|
msgstr "Die Produkte-UUID erhalten"
|
||||||
|
|
||||||
#: src/hostname/org.freedesktop.hostname1.policy:52
|
#: src/hostname/org.freedesktop.hostname1.policy:52
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
@ -622,7 +623,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: src/login/org.freedesktop.login1.policy:352
|
#: src/login/org.freedesktop.login1.policy:352
|
||||||
msgid "Set the reboot \"reason\" in the kernel"
|
msgid "Set the reboot \"reason\" in the kernel"
|
||||||
msgstr ""
|
msgstr "Den Reboot-\"Grund\" im Kernel festlegen"
|
||||||
|
|
||||||
#: src/login/org.freedesktop.login1.policy:353
|
#: src/login/org.freedesktop.login1.policy:353
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
|
|||||||
@ -470,9 +470,14 @@ int read_virtual_file(const char *filename, size_t max_size, char **ret_contents
|
|||||||
if (n <= size)
|
if (n <= size)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* If a maximum size is specified and we already read as much, no need to try again */
|
/* If a maximum size is specified and we already read more we know the file is larger, and
|
||||||
if (max_size != SIZE_MAX && n >= max_size) {
|
* can handle this as truncation case. Note that if the size of what we read equals the
|
||||||
n = max_size;
|
* maximum size then this doesn't mean truncation, the file might or might not end on that
|
||||||
|
* byte. We need to rerun the loop in that case, with a larger buffer size, so that we read
|
||||||
|
* at least one more byte to be able to distinguish EOF from truncation. */
|
||||||
|
if (max_size != SIZE_MAX && n > max_size) {
|
||||||
|
n = size; /* Make sure we never use more than what we sized the buffer for (so that
|
||||||
|
* we have one free byte in it for the trailing NUL we add below).*/
|
||||||
truncated = true;
|
truncated = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1047,7 +1047,11 @@ static void test_read_virtual_file(size_t max_size) {
|
|||||||
FOREACH_STRING(filename,
|
FOREACH_STRING(filename,
|
||||||
"/proc/1/cmdline",
|
"/proc/1/cmdline",
|
||||||
"/etc/nsswitch.conf",
|
"/etc/nsswitch.conf",
|
||||||
"/sys/kernel/uevent_seqnum") {
|
"/sys/kernel/uevent_seqnum",
|
||||||
|
"/proc/kcore",
|
||||||
|
"/proc/kallsyms",
|
||||||
|
"/proc/self/exe",
|
||||||
|
"/proc/self/pagemap") {
|
||||||
|
|
||||||
_cleanup_free_ char *buf = NULL;
|
_cleanup_free_ char *buf = NULL;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
@ -1055,7 +1059,11 @@ static void test_read_virtual_file(size_t max_size) {
|
|||||||
r = read_virtual_file(filename, max_size, &buf, &size);
|
r = read_virtual_file(filename, max_size, &buf, &size);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
log_info_errno(r, "read_virtual_file(\"%s\", %zu): %m", filename, max_size);
|
log_info_errno(r, "read_virtual_file(\"%s\", %zu): %m", filename, max_size);
|
||||||
assert_se(ERRNO_IS_PRIVILEGE(r) || r == -ENOENT);
|
assert_se(ERRNO_IS_PRIVILEGE(r) || /* /proc/kcore is not accessible to unpriv */
|
||||||
|
IN_SET(r,
|
||||||
|
-ENOENT, /* Some of the files might be absent */
|
||||||
|
-EINVAL, /* too small reads from /proc/self/pagemap trigger EINVAL */
|
||||||
|
-EFBIG)); /* /proc/kcore and /proc/self/pagemap should be too large */
|
||||||
} else
|
} else
|
||||||
log_info("read_virtual_file(\"%s\", %zu): %s (%zu bytes)", filename, max_size, r ? "non-truncated" : "truncated", size);
|
log_info("read_virtual_file(\"%s\", %zu): %s (%zu bytes)", filename, max_size, r ? "non-truncated" : "truncated", size);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user