1
0
mirror of https://github.com/systemd/systemd synced 2025-09-30 09:14:46 +02:00

Compare commits

..

No commits in common. "afe6a9c48e956c8ddfaa0f201cf371b01a22f970" and "cb3363ef7af77cdaf29d2d6a6380a152cf5702bd" have entirely different histories.

6 changed files with 40 additions and 28 deletions

View File

@ -12,6 +12,3 @@ A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**The systemd version you checked that didn't have the feature you are asking for**
<!-- If this is not the most recently released upstream version, then please check first if it has that feature already. -->

View File

@ -50,7 +50,7 @@
group records. Internally it talks to all other user/group record services running on the system in
parallel and forwards any information discovered. This simplifies clients substantially since they need
to talk to a single service only instead of all of them in
parallel. <constant>io.systemd.NameServiceSwitch</constant> provides compatibility with classic UNIX/glibc
parallel. <constant>io.systemd.NameSeviceSwitch</constant> provides compatibility with classic UNIX/glibc
NSS user records, i.e. converts <type>struct passwd</type> and <type>struct group</type> records as
acquired with APIs such as <citerefentry
project='man-pages'><refentrytitle>getpwnam</refentrytitle><manvolnum>1</manvolnum></citerefentry> to JSON

View File

@ -215,7 +215,7 @@
</varlistentry>
<varlistentry>
<term><constant>io.systemd.NameServiceSwitch</constant></term>
<term><constant>io.systemd.NameSeviceSwitch</constant></term>
<listitem><para>This service is (also) provided by
<citerefentry><refentrytitle>systemd-userdbd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
@ -232,7 +232,7 @@
<para>Note that <command>userdbctl</command> has internal support for NSS-based lookups too. This means
that if neither <constant>io.systemd.Multiplexer</constant> nor
<constant>io.systemd.NameServiceSwitch</constant> are running look-ups into the basic user/group
<constant>io.systemd.NameSeviceSwitch</constant> are running look-ups into the basic user/group
databases will still work.</para>
</refsect1>

View File

@ -11,7 +11,7 @@ msgstr ""
"Project-Id-Version: systemd master\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-08 17:48+0100\n"
"PO-Revision-Date: 2021-02-05 20:40+0000\n"
"PO-Revision-Date: 2021-02-03 18:40+0000\n"
"Last-Translator: Göran Uddeborg <goeran@uddeborg.se>\n"
"Language-Team: Swedish <https://translate.fedoraproject.org/projects/systemd/"
"master/sv/>\n"
@ -804,48 +804,56 @@ msgstr "Autentisering krävs för att inspektera en portabel tjänsteavbild."
#: src/portable/org.freedesktop.portable1.policy:23
msgid "Attach or detach a portable service image"
msgstr "Koppla in eller koppla ifrån en portabel tjänsteavbild"
msgstr ""
#: src/portable/org.freedesktop.portable1.policy:24
#, fuzzy
#| msgid "Authentication is required to attach a device to a seat."
msgid ""
"Authentication is required to attach or detach a portable service image."
msgstr ""
"Autentisering krävs för att koppla in eller koppla ifrån en portabel "
"tjänsteavbild."
msgstr "Autentisering krävs för att binda en enhet till en plats."
#: src/portable/org.freedesktop.portable1.policy:34
msgid "Delete or modify portable service image"
msgstr "Radera eller modifiera en portabel tjänsteavbild"
msgstr ""
#: src/portable/org.freedesktop.portable1.policy:35
#, fuzzy
#| msgid "Authentication is required to download a VM or container image"
msgid ""
"Authentication is required to delete or modify a portable service image."
msgstr ""
"Autentisering krävs för att radera eller modifiera en portabel tjänsteavbild."
msgstr "Autentisering krävs för att hämta ner en VM eller behållaravbildning"
#: src/resolve/org.freedesktop.resolve1.policy:22
msgid "Register a DNS-SD service"
msgstr "Registrera en DNS-SD-tjänst"
#: src/resolve/org.freedesktop.resolve1.policy:23
#, fuzzy
#| msgid "Authentication is required to set a wall message"
msgid "Authentication is required to register a DNS-SD service"
msgstr "Autentisering krävs för att registrera en DNS-SD-tjänst"
msgstr "Autentisering krävs för att ställa in ett väggmeddelande"
#: src/resolve/org.freedesktop.resolve1.policy:33
msgid "Unregister a DNS-SD service"
msgstr "Avregistrera en DNS-SD-tjänst"
#: src/resolve/org.freedesktop.resolve1.policy:34
#, fuzzy
#| msgid "Authentication is required to set a wall message"
msgid "Authentication is required to unregister a DNS-SD service"
msgstr "Autentisering krävs för att avregistrera en DNS-SD-tjänst"
msgstr "Autentisering krävs för att ställa in ett väggmeddelande"
#: src/resolve/org.freedesktop.resolve1.policy:132
msgid "Revert name resolution settings"
msgstr "Återställ namnuppslagningsinställningar"
msgstr ""
#: src/resolve/org.freedesktop.resolve1.policy:133
#, fuzzy
#| msgid "Authentication is required to set the system keyboard settings."
msgid "Authentication is required to reset name resolution settings."
msgstr "Autentisering krävs för att återställa namnuppslagningsinställningar."
msgstr ""
"Autentisering krävs för att ställa in systeminställningar för tangentbord."
#: src/timedate/org.freedesktop.timedate1.policy:22
msgid "Set system time"
@ -906,12 +914,12 @@ msgid "Authentication is required to restart '$(unit)'."
msgstr "Autentisering krävs för att starta om \"$(unit)\"."
#: src/core/dbus-unit.c:535
#, fuzzy
#| msgid "Authentication is required to set properties on '$(unit)'."
msgid ""
"Authentication is required to send a UNIX signal to the processes of "
"'$(unit)'."
msgstr ""
"Autentisering krävs för att skicka en UNIX-signal till processerna i "
"”$(unit)”."
msgstr "Autentisering krävs för att ställa in egenskaper på \"$(unit)\"."
#: src/core/dbus-unit.c:566
msgid "Authentication is required to reset the \"failed\" state of '$(unit)'."
@ -924,18 +932,25 @@ msgid "Authentication is required to set properties on '$(unit)'."
msgstr "Autentisering krävs för att ställa in egenskaper på \"$(unit)\"."
#: src/core/dbus-unit.c:708
#, fuzzy
#| msgid ""
#| "Authentication is required to reset the \"failed\" state of '$(unit)'."
msgid ""
"Authentication is required to delete files and directories associated with "
"'$(unit)'."
msgstr ""
"Autentisering krävs för att radera filer och kataloger associerade med "
"”$(unit)”."
"Autentisering krävs för att återställa det \"fallerade\" tillståndet för "
"\"$(unit)\"."
#: src/core/dbus-unit.c:757
#, fuzzy
#| msgid ""
#| "Authentication is required to reset the \"failed\" state of '$(unit)'."
msgid ""
"Authentication is required to freeze or thaw the processes of '$(unit)' unit."
msgstr ""
"Autentisering krävs för att frysa eller töa processerna i enheten ”$(unit)”."
"Autentisering krävs för att återställa det \"fallerade\" tillståndet för "
"\"$(unit)\"."
#~ msgid ""
#~ "Authentication is required to halt the system while an application asked "

View File

@ -68,7 +68,7 @@ static int connect_to_resolved(Varlink **ret) {
static uint32_t ifindex_to_scopeid(int family, const void *a, int ifindex) {
struct in6_addr in6;
if (family != AF_INET6 || ifindex == 0)
if (family != AF_INET6)
return 0;
/* Some apps can't deal with the scope ID attached to non-link-local addresses. Hence, let's suppress that. */
@ -90,7 +90,7 @@ static int json_dispatch_ifindex(const char *name, JsonVariant *variant, JsonDis
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an integer.", strna(name));
t = json_variant_integer(variant);
if (t > INT_MAX)
if (t <= 0 || t > INT_MAX)
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is out of bounds for an interface index.", strna(name));
*ifi = (int) t;

View File

@ -180,7 +180,7 @@ static void vl_method_resolve_hostname_complete(DnsQuery *q) {
r = json_build(&entry,
JSON_BUILD_OBJECT(
JSON_BUILD_PAIR_CONDITION(ifindex > 0, "ifindex", JSON_BUILD_INTEGER(ifindex)),
JSON_BUILD_PAIR("ifindex", JSON_BUILD_INTEGER(ifindex)),
JSON_BUILD_PAIR("family", JSON_BUILD_INTEGER(family)),
JSON_BUILD_PAIR("address", JSON_BUILD_BYTE_ARRAY(p, FAMILY_ADDRESS_SIZE(family)))));
if (r < 0)
@ -408,7 +408,7 @@ static void vl_method_resolve_address_complete(DnsQuery *q) {
r = json_build(&entry,
JSON_BUILD_OBJECT(
JSON_BUILD_PAIR_CONDITION(ifindex > 0, "ifindex", JSON_BUILD_INTEGER(ifindex)),
JSON_BUILD_PAIR("ifindex", JSON_BUILD_INTEGER(ifindex)),
JSON_BUILD_PAIR("name", JSON_BUILD_STRING(normalized))));
if (r < 0)
goto finish;