1
0
mirror of https://github.com/systemd/systemd synced 2026-03-28 17:54:51 +01:00

Compare commits

..

No commits in common. "93caec7ed612c3d5d62ee092774bb481995fc05e" and "f782eee68aea996c68b8cfeba5f288dae7fc876f" have entirely different histories.

5 changed files with 143 additions and 264 deletions

View File

@ -1,5 +1,3 @@
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
@ -20,5 +18,4 @@ 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

View File

@ -6,14 +6,13 @@
# 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-09-16 18:04+0000\n" "PO-Revision-Date: 2021-08-23 18:04+0000\n"
"Last-Translator: Christian Wehrli <christian@chw.onl>\n" "Last-Translator: Ettore Atalan <atalanttore@googlemail.com>\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"
@ -178,7 +177,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 "Die Produkte-UUID erhalten" msgstr ""
#: src/hostname/org.freedesktop.hostname1.policy:52 #: src/hostname/org.freedesktop.hostname1.policy:52
#, fuzzy #, fuzzy
@ -623,7 +622,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 "Den Reboot-\"Grund\" im Kernel festlegen" msgstr ""
#: src/login/org.freedesktop.login1.policy:353 #: src/login/org.freedesktop.login1.policy:353
#, fuzzy #, fuzzy

372
po/pt.po

File diff suppressed because it is too large Load Diff

View File

@ -470,14 +470,9 @@ 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 more we know the file is larger, and /* If a maximum size is specified and we already read as much, no need to try again */
* can handle this as truncation case. Note that if the size of what we read equals the if (max_size != SIZE_MAX && n >= max_size) {
* maximum size then this doesn't mean truncation, the file might or might not end on that n = max_size;
* 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;
} }

View File

@ -1047,11 +1047,7 @@ 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;
@ -1059,11 +1055,7 @@ 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) || /* /proc/kcore is not accessible to unpriv */ assert_se(ERRNO_IS_PRIVILEGE(r) || r == -ENOENT);
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);
} }