summaryrefslogtreecommitdiffstats
path: root/templates/man2/chown.2.pot
diff options
context:
space:
mode:
Diffstat (limited to 'templates/man2/chown.2.pot')
-rw-r--r--templates/man2/chown.2.pot76
1 files changed, 65 insertions, 11 deletions
diff --git a/templates/man2/chown.2.pot b/templates/man2/chown.2.pot
index 952a7c0f..361c93f3 100644
--- a/templates/man2/chown.2.pot
+++ b/templates/man2/chown.2.pot
@@ -7,7 +7,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2024-03-01 16:54+0100\n"
+"POT-Creation-Date: 2024-06-01 05:44+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -24,15 +24,15 @@ msgid "chown"
msgstr ""
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable opensuse-tumbleweed
#, no-wrap
-msgid "2023-10-31"
+msgid "2024-05-02"
msgstr ""
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable
#, no-wrap
-msgid "Linux man-pages 6.06"
+msgid "Linux man-pages 6.8"
msgstr ""
#. type: SH
@@ -778,13 +778,13 @@ msgid "Program source"
msgstr ""
#. type: Plain text
-#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
-#: opensuse-tumbleweed
+#: archlinux debian-unstable opensuse-tumbleweed
#, no-wrap
msgid ""
"#include E<lt>pwd.hE<gt>\n"
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
+"#include E<lt>sys/types.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
"int\n"
@@ -944,15 +944,63 @@ msgid ""
msgstr ""
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 fedora-rawhide mageia-cauldron
+#, no-wrap
+msgid "2023-10-31"
+msgstr ""
+
+#. type: TH
+#: fedora-40 mageia-cauldron
+#, no-wrap
+msgid "Linux man-pages 6.06"
+msgstr ""
+
+#. type: Plain text
+#: fedora-40 fedora-rawhide mageia-cauldron
#, no-wrap
-msgid "2023-05-03"
+msgid ""
+"#include E<lt>pwd.hE<gt>\n"
+"#include E<lt>stdio.hE<gt>\n"
+"#include E<lt>stdlib.hE<gt>\n"
+"#include E<lt>unistd.hE<gt>\n"
+"\\&\n"
+"int\n"
+"main(int argc, char *argv[])\n"
+"{\n"
+" char *endptr;\n"
+" uid_t uid;\n"
+" struct passwd *pwd;\n"
+"\\&\n"
+" if (argc != 3 || argv[1][0] == \\[aq]\\e0\\[aq]) {\n"
+" fprintf(stderr, \"%s E<lt>ownerE<gt> E<lt>fileE<gt>\\en\", argv[0]);\n"
+" exit(EXIT_FAILURE);\n"
+" }\n"
+"\\&\n"
+" uid = strtol(argv[1], &endptr, 10); /* Allow a numeric string */\n"
+"\\&\n"
+" if (*endptr != \\[aq]\\e0\\[aq]) { /* Was not pure numeric string */\n"
+" pwd = getpwnam(argv[1]); /* Try getting UID for username */\n"
+" if (pwd == NULL) {\n"
+" perror(\"getpwnam\");\n"
+" exit(EXIT_FAILURE);\n"
+" }\n"
+"\\&\n"
+" uid = pwd-E<gt>pw_uid;\n"
+" }\n"
+"\\&\n"
+" if (chown(argv[2], uid, -1) == -1) {\n"
+" perror(\"chown\");\n"
+" exit(EXIT_FAILURE);\n"
+" }\n"
+"\\&\n"
+" exit(EXIT_SUCCESS);\n"
+"}\n"
msgstr ""
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-rawhide
#, no-wrap
-msgid "Linux man-pages 6.05.01"
+msgid "Linux man-pages 6.7"
msgstr ""
#. type: TH
@@ -966,3 +1014,9 @@ msgstr ""
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr ""
+
+#. type: TH
+#: opensuse-tumbleweed
+#, no-wrap
+msgid "Linux man-pages (unreleased)"
+msgstr ""