summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.adoc1
-rw-r--r--po/cs.po23
-rw-r--r--po/de.po26
-rw-r--r--po/es.po22
-rw-r--r--po/fr.po34
-rw-r--r--po/hu.po22
-rw-r--r--po/it.po22
-rw-r--r--po/ja.po23
-rw-r--r--po/pl.po23
-rw-r--r--po/pt.po23
-rw-r--r--po/pt_BR.po22
-rw-r--r--po/ru.po22
-rw-r--r--po/sr.po23
-rw-r--r--po/tr.po23
-rw-r--r--po/weechat.pot22
-rw-r--r--src/core/core-config-file.c18
-rw-r--r--src/core/core-config.c45
-rw-r--r--src/core/core-config.h1
18 files changed, 333 insertions, 62 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc
index fde8c9465..228b517f7 100644
--- a/ChangeLog.adoc
+++ b/ChangeLog.adoc
@@ -15,6 +15,7 @@ For a list of important changes that require manual actions, please look at rele
New features::
+ * core: add option weechat.look.config_permissions (issue #2057)
* core: add bar item "lag"
* core: add buffer properties "input_prompt" and "modes"
* core: send signal "buffer_line_added" on buffers with free content
diff --git a/po/cs.po b/po/cs.po
index 1630f75f5..e0d70afe5 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4408,6 +4408,16 @@ msgid ""
msgstr ""
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5448,6 +5458,11 @@ msgstr "(výchozí volby)"
msgid "%sCannot create file \"%s\""
msgstr "%sChyba: nemohu vytvořit soubor \"%s\""
+#, fuzzy, c-format
+#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "%sVAROVÁNÍ: selhalo čtení konfiguračního souboru \"%s\" (%s)"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sChyba při zápisu konfiguračního souboru \"%s\""
@@ -6255,6 +6270,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-VÍCE(%d)-"
+msgid "Lag"
+msgstr "Lag"
+
msgid "away"
msgstr "pryč"
@@ -8151,9 +8169,6 @@ msgstr "%s%s: skript \"%s\" nenačten"
msgid "server"
msgstr "server"
-msgid "Lag"
-msgstr "Lag"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/po/de.po b/po/de.po
index 6e0fd6e37..ff63a66fe 100644
--- a/po/de.po
+++ b/po/de.po
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-05-15 18:07+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -4959,6 +4959,16 @@ msgstr ""
"akzeptiert, zum Beispiel /he für /help"
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -6223,6 +6233,11 @@ msgstr "(Standardeinstellungen)"
msgid "%sCannot create file \"%s\""
msgstr "%sDie Datei \"%s\" kann nicht erstellt werden"
+#, fuzzy, c-format
+#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "%sWARNUNG: Konfigurationsdatei \"%s\" konnte nicht geladen werden (%s)"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr ""
@@ -7097,6 +7112,9 @@ msgstr "Tastatur- und Maus-Debug ('q' zum Verlassen des Debug-Modus)"
msgid "%s-MORE(%d)-"
msgstr "%s-MEHR(%d)-"
+msgid "Lag"
+msgstr "Lag"
+
msgid "away"
msgstr "abwesend"
@@ -9337,9 +9355,6 @@ msgstr "%s%s: Das Skript \"%s\" wurde nicht installiert"
msgid "server"
msgstr "Server"
-msgid "Lag"
-msgstr "Lag"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "Klartext"
@@ -15630,7 +15645,6 @@ msgstr ""
"url: URL des Remote-Relays im Format https://example.com:9000 oder http://"
"example.com:9000 (Klartext-Verbindung, nicht empfohlen)"
-#| msgid "option: extra option, for some servers"
msgid "option: set option for remote relay"
msgstr "option: zusätzliche Einstellung, für ein Remote-Relay"
@@ -15717,7 +15731,6 @@ msgstr ""
"example.com:9000 oder http://example.com:9000 (Klartext-Verbindung, nicht "
"empfohlen)"
-#| msgid "raw[connect]: connect to a remote relay server"
msgid "auto-connect to the remote relay"
msgstr "automatische Verbindung zu einem Remote-Relay herstellen"
@@ -18419,4 +18432,3 @@ msgstr ""
#~ msgid "color for channel modes, near channel name"
#~ msgstr "Farbe der Kanal-Modes (neben des Kanalnamens)"
-
diff --git a/po/es.po b/po/es.po
index ccb3ce103..b34039d74 100644
--- a/po/es.po
+++ b/po/es.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4535,6 +4535,16 @@ msgid ""
msgstr ""
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5631,6 +5641,10 @@ msgstr "(opciones por defecto)"
msgid "%sCannot create file \"%s\""
msgstr "%sError: no es posible crear el archivo \"%s\""
+#, fuzzy, c-format
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "Guardando archivo de configuración %s %s"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sError al escribir el archivo de configuración \"%s\""
@@ -6434,6 +6448,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-MÁS(%d)-"
+msgid "Lag"
+msgstr "Retraso"
+
msgid "away"
msgstr "ausente"
@@ -8343,9 +8360,6 @@ msgstr "%s%s: el script \"%s\" no está cargado"
msgid "server"
msgstr "servidor"
-msgid "Lag"
-msgstr "Retraso"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/po/fr.po b/po/fr.po
index b3bf14ebe..e3bd1af09 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
-"PO-Revision-Date: 2024-05-14 22:23+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
+"PO-Revision-Date: 2024-05-18 09:16+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -4850,6 +4850,24 @@ msgstr ""
"exemple /he pour /help"
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+"permissions pour les fichiers de configuration (*.conf), sous forme de "
+"valeur octale (voir man chmod) ; doit être un nombre avec 3 chiffres, chaque "
+"chiffre peut être 0 (aucune permission), 2 (écriture seule), 4 (lecture "
+"seule) ou 6 (lecture et écriture) ; le premier chiffre doit être 6 pour que "
+"l'utilisateur puisse lire et écrire le fichier ; par défaut les fichiers de "
+"configuration peuvent être lus et écrits par l'utilisateur seulement, pour "
+"des raisons de sécurité ; par exemple 660 = \"rw-rw-r--\" = fichier en "
+"lecture et écriture pour l'utilisateur et les membres du groupe"
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -6085,6 +6103,12 @@ msgid "%sCannot create file \"%s\""
msgstr "%sImpossible de créer le fichier \"%s\""
#, c-format
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr ""
+"%sATTENTION : échec de changement des permissions sur le fichier de "
+"configuration \"%s\" (%s)"
+
+#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sErreur d'écriture du fichier de configuration \"%s\""
@@ -6955,6 +6979,9 @@ msgstr "debug clavier et souris ('q' pour quitter le mode de debug)"
msgid "%s-MORE(%d)-"
msgstr "%s-PLUS(%d)-"
+msgid "Lag"
+msgstr "Lag"
+
msgid "away"
msgstr "absent"
@@ -9167,9 +9194,6 @@ msgstr "%s%s : script \"%s\" non chargé"
msgid "server"
msgstr "serveur"
-msgid "Lag"
-msgstr "Lag"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "en clair"
diff --git a/po/hu.po b/po/hu.po
index 755713baf..7b9304687 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4184,6 +4184,16 @@ msgid ""
msgstr ""
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5152,6 +5162,10 @@ msgid "%sCannot create file \"%s\""
msgstr "%s nem sikerült a \"%s\" fájlt létrehozni\n"
#, fuzzy, c-format
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "beállítások mentése kilépéskor"
+
+#, fuzzy, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "szerver konfigurációs fájljának újraolvastatása"
@@ -5937,6 +5951,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "-TOVÁBB-"
+msgid "Lag"
+msgstr ""
+
msgid "away"
msgstr ""
@@ -7807,9 +7824,6 @@ msgstr "%s a \"%s\" szerver nem található\n"
msgid "server"
msgstr "szerver"
-msgid "Lag"
-msgstr ""
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/po/it.po b/po/it.po
index 0f61b47b3..11fe68d40 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4444,6 +4444,16 @@ msgid ""
msgstr ""
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5561,6 +5571,10 @@ msgstr "(opzioni predefinite)"
msgid "%sCannot create file \"%s\""
msgstr "%sErrore: impossibile creare il file \"%s\""
+#, fuzzy, c-format
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "Salvataggio del file di configurazione %s %s"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sErrore: impossibile scrivere sul file di configurazione \"%s\""
@@ -6388,6 +6402,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-ANCORA(%d)-"
+msgid "Lag"
+msgstr "Ritardo"
+
msgid "away"
msgstr "assente"
@@ -8338,9 +8355,6 @@ msgstr "%s%s: script \"%s\" non caricato"
msgid "server"
msgstr "server"
-msgid "Lag"
-msgstr "Ritardo"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/po/ja.po b/po/ja.po
index fa3782e5b..e00fe3b65 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -4587,6 +4587,16 @@ msgstr ""
"す、例えば /he は /help の意味で使うことができます"
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5733,6 +5743,11 @@ msgstr "(デフォルトオプション)"
msgid "%sCannot create file \"%s\""
msgstr "%sエラー: ファイル \"%s\" の作成に失敗"
+#, fuzzy, c-format
+#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "%s警告: 設定ファイル \"%s\" (%s) の読み込みに失敗"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%s設定ファイル \"%s\" の書き込み中にエラー"
@@ -6561,6 +6576,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-MORE(%d)-"
+msgid "Lag"
+msgstr "遅延時間"
+
msgid "away"
msgstr "離席"
@@ -8593,9 +8611,6 @@ msgstr "%s%s: スクリプト \"%s\" はロードされていません"
msgid "server"
msgstr "サーバ"
-msgid "Lag"
-msgstr "遅延時間"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/po/pl.po b/po/pl.po
index d6561e88f..e6e99c43a 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-05-02 00:06+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4717,6 +4717,16 @@ msgstr ""
"przykład /he dla /help"
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5894,6 +5904,11 @@ msgstr "(domyślne opcje)"
msgid "%sCannot create file \"%s\""
msgstr "%sNie można utworzyć pliku \"%s\""
+#, fuzzy, c-format
+#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "%sUWAGA: nie powiódł się odczyt pliku konfiguracyjnego \"%s\" (%s)"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sBłąd podczas zapisu pliku konfiguracyjnego \"%s\""
@@ -6744,6 +6759,9 @@ msgstr "debugowanie klawiatury i myszy ('q' wychodzi z trybu debugowania)"
msgid "%s-MORE(%d)-"
msgstr "%s-Więcej(%d)-"
+msgid "Lag"
+msgstr "Lag"
+
msgid "away"
msgstr "nieobecny"
@@ -8875,9 +8893,6 @@ msgstr "%s%s: skrypt \"%s\" nie załadowany"
msgid "server"
msgstr "serwer"
-msgid "Lag"
-msgstr "Lag"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "czysty tekst"
diff --git a/po/pt.po b/po/pt.po
index c601859e6..2f16a693a 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -4605,6 +4605,16 @@ msgstr ""
"exemplo /he para /help"
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5774,6 +5784,11 @@ msgstr "(opções predefinidas)"
msgid "%sCannot create file \"%s\""
msgstr "%sErro: não é possível criar o ficheiro \"%s\""
+#, fuzzy, c-format
+#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "%sAVISO: falha ao ler o ficheiro de configuração \"%s\" (%s)"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sErro ao escrever o ficheiro de configuração \"%s\""
@@ -6619,6 +6634,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-MAIS(%d)-"
+msgid "Lag"
+msgstr "Lag"
+
msgid "away"
msgstr "ausente"
@@ -8581,9 +8599,6 @@ msgstr "%s%s: script \"%s\" não carregado"
msgid "server"
msgstr "servidor"
-msgid "Lag"
-msgstr "Lag"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 1bba17cfe..e77f47084 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4453,6 +4453,16 @@ msgid ""
msgstr ""
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5520,6 +5530,10 @@ msgstr "(opções padrão)"
msgid "%sCannot create file \"%s\""
msgstr "%sErro: não foi possível criar arquivo \"%s\""
+#, fuzzy, c-format
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "Escrevendo arquivo de configurações %s %s"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sErro escrevendo arquivo de configuração \"%s\""
@@ -6306,6 +6320,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-MORE(%d)-"
+msgid "Lag"
+msgstr ""
+
msgid "away"
msgstr ""
@@ -8230,9 +8247,6 @@ msgstr "%s%s: script \"%s\" não carregado"
msgid "server"
msgstr "servidor"
-msgid "Lag"
-msgstr ""
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/po/ru.po b/po/ru.po
index 22b4436e1..68aaa3e88 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4209,6 +4209,16 @@ msgid ""
msgstr ""
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5183,6 +5193,10 @@ msgid "%sCannot create file \"%s\""
msgstr "%s не могу создать файл \"%s\"\n"
#, fuzzy, c-format
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "сохранять конфигурационный файл при выходе"
+
+#, fuzzy, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "перезагрузить конфигурационный файл сервера"
@@ -5978,6 +5992,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "-ДАЛЬШЕ-"
+msgid "Lag"
+msgstr ""
+
msgid "away"
msgstr ""
@@ -7849,9 +7866,6 @@ msgstr "%s сервер \"%s\" не найден\n"
msgid "server"
msgstr "сервер"
-msgid "Lag"
-msgstr ""
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/po/sr.po b/po/sr.po
index 717f8e551..36b70b1c4 100644
--- a/po/sr.po
+++ b/po/sr.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-05-07 14:00+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4711,6 +4711,16 @@ msgstr ""
"пример /he за /help"
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5890,6 +5900,11 @@ msgstr "(подразумеване опције)"
msgid "%sCannot create file \"%s\""
msgstr "%sНе може да се креира фајл „%s”"
+#, fuzzy, c-format
+#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "%sУПОЗОРЕЊЕ: није могао да се прочита конфигурациони фајл „%s” (%s)"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sГрешка при уписивању конфигурационог фајла „%s”"
@@ -6741,6 +6756,9 @@ msgstr "дибаг тастатуре и миша (’q’ да напустит
msgid "%s-MORE(%d)-"
msgstr "%s-ЈОШ(%d)-"
+msgid "Lag"
+msgstr "Кашњење"
+
msgid "away"
msgstr "одсутан"
@@ -8886,9 +8904,6 @@ msgstr "%s%s: скрипта „%s” није учитана"
msgid "server"
msgstr "сервер"
-msgid "Lag"
-msgstr "Кашњење"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "чисттекст"
diff --git a/po/tr.po b/po/tr.po
index d44f77c2b..2a46228c5 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4620,6 +4620,16 @@ msgstr ""
"yerine /he"
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -5792,6 +5802,11 @@ msgstr "(öntanımlı seçenekler)"
msgid "%sCannot create file \"%s\""
msgstr "%s\"%s\" dosyası oluşturulamıyor"
+#, fuzzy, c-format
+#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr "%sUYARI: \"%s\" yapılandırma dosyası okunamadı (%s)"
+
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%s\"%s\" yapılandırma dosyası yazılırken hata"
@@ -6636,6 +6651,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-DAHA FAZLA(%d)-"
+msgid "Lag"
+msgstr "Gecikme"
+
msgid "away"
msgstr "uzakta"
@@ -8692,9 +8710,6 @@ msgstr "%s%s: \"%s\" betiği yüklenmedi"
msgid "server"
msgstr "sunucu"
-msgid "Lag"
-msgstr "Gecikme"
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "düzmetin"
diff --git a/po/weechat.pot b/po/weechat.pot
index b62d99950..d3953779c 100644
--- a/po/weechat.pot
+++ b/po/weechat.pot
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2024-05-14 22:20+0200\n"
+"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3925,6 +3925,16 @@ msgid ""
msgstr ""
msgid ""
+"permissions for configuration files (*.conf), as octal value (see man "
+"chmod); it must be a number with 3 digits, each digit can be 0 (no "
+"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
+"digit must be 6 so that the user can read and write the file; by default "
+"configuration files can be read and written by the user only, for security "
+"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
+"user and members of the group"
+msgstr ""
+
+msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
msgstr ""
@@ -4784,6 +4794,10 @@ msgid "%sCannot create file \"%s\""
msgstr ""
#, c-format
+msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
+msgstr ""
+
+#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr ""
@@ -5526,6 +5540,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr ""
+msgid "Lag"
+msgstr ""
+
msgid "away"
msgstr ""
@@ -7285,9 +7302,6 @@ msgstr ""
msgid "server"
msgstr ""
-msgid "Lag"
-msgstr ""
-
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
diff --git a/src/core/core-config-file.c b/src/core/core-config-file.c
index 156035e40..a76078157 100644
--- a/src/core/core-config-file.c
+++ b/src/core/core-config-file.c
@@ -3193,7 +3193,8 @@ config_file_write_internal (struct t_config_file *config_file,
int default_options)
{
int filename_length, rc;
- char *filename, *filename2, resolved_path[PATH_MAX];
+ long file_perms;
+ char *filename, *filename2, resolved_path[PATH_MAX], *error;
struct t_config_section *ptr_section;
struct t_config_option *ptr_option;
@@ -3339,7 +3340,20 @@ config_file_write_internal (struct t_config_file *config_file,
config_file->file = NULL;
/* update file mode */
- chmod (filename2, 0600);
+ error = NULL;
+ file_perms = strtol (CONFIG_STRING(config_look_config_permissions), &error, 8);
+ if (!error || error[0])
+ file_perms = 0600;
+ if (chmod (filename2, file_perms) < 0)
+ {
+ gui_chat_printf (
+ NULL,
+ _("%sWARNING: failed to set permissions on configuration file "
+ "\"%s\" (%s)"),
+ gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
+ filename2,
+ strerror (errno));
+ }
/* rename temp file to target file */
rc = rename (filename2, filename);
diff --git a/src/core/core-config.c b/src/core/core-config.c
index 9258ab0ee..d02ae4eef 100644
--- a/src/core/core-config.c
+++ b/src/core/core-config.c
@@ -133,6 +133,7 @@ struct t_config_option *config_look_color_pairs_auto_reset = NULL;
struct t_config_option *config_look_color_real_white = NULL;
struct t_config_option *config_look_command_chars = NULL;
struct t_config_option *config_look_command_incomplete = NULL;
+struct t_config_option *config_look_config_permissions = NULL;
struct t_config_option *config_look_confirm_quit = NULL;
struct t_config_option *config_look_confirm_upgrade = NULL;
struct t_config_option *config_look_day_change = NULL;
@@ -394,6 +395,35 @@ config_change_sys_rlimit (const void *pointer, void *data,
}
/*
+ * Checks option "weechat.look.config_permissions".
+ */
+
+int
+config_check_config_permissions (const void *pointer, void *data,
+ struct t_config_option *option,
+ const char *value)
+{
+ const char *ptr_perm;
+
+ /* make C compiler happy */
+ (void) pointer;
+ (void) data;
+ (void) option;
+
+ if (!value || (strlen (value) != 3) || (value[0] != '6'))
+ return 0;
+
+ ptr_perm = value;
+ while (ptr_perm && ptr_perm[0])
+ {
+ if (!strchr ("0246", ptr_perm[0]))
+ return 0;
+ ptr_perm++;
+ }
+ return 1;
+}
+
+/*
* Callback for changes on options "weechat.look.save_{config|layout}_on_exit".
*/
@@ -3462,6 +3492,21 @@ config_weechat_init_options ()
"example /he for /help"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ config_look_config_permissions = config_file_new_option (
+ weechat_config_file, weechat_config_section_look,
+ "config_permissions", "string",
+ N_("permissions for configuration files (*.conf), as octal value "
+ "(see man chmod); it must be a number with 3 digits, each digit "
+ "can be 0 (no permissions), 2 (write only), 4 (read only) or "
+ "6 (read and write); the first digit must be 6 so that the user "
+ "can read and write the file; by default configuration files "
+ "can be read and written by the user only, for security "
+ "reasons; for example 660 = \"rw-rw-r--\" = file readable and "
+ "writable by the user and members of the group"),
+ NULL, 0, 0, "600", NULL, 0,
+ &config_check_config_permissions, NULL, NULL,
+ NULL, NULL, NULL,
+ NULL, NULL, NULL);
config_look_confirm_quit = config_file_new_option (
weechat_config_file, weechat_config_section_look,
"confirm_quit", "boolean",
diff --git a/src/core/core-config.h b/src/core/core-config.h
index 2c7226bf2..e57e4ad0d 100644
--- a/src/core/core-config.h
+++ b/src/core/core-config.h
@@ -190,6 +190,7 @@ extern struct t_config_option *config_look_color_pairs_auto_reset;
extern struct t_config_option *config_look_color_real_white;
extern struct t_config_option *config_look_command_chars;
extern struct t_config_option *config_look_command_incomplete;
+extern struct t_config_option *config_look_config_permissions;
extern struct t_config_option *config_look_confirm_quit;
extern struct t_config_option *config_look_confirm_upgrade;
extern struct t_config_option *config_look_day_change;