URL: https://github.com/SSSD/sssd/pull/5860
Author: fernape
 Title: #5860: [monitor] Fix untranslated string
Action: opened

PR body:
"""
Promote format string to gettext's PRIu64 instead of using SSSD's
SPRIuid which is not recognized. This caused the original string to be
truncated in the translation files.

How to test:

Apply patch and run:

make -C po/ update-pot

Translations should contain the full string now:

msgid "Running under %<PRIu64>, must be root\n"

Resolves: #5738
"""

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5860/head:pr5860
git checkout pr5860
From 1d6cfda89aebac2a4f98a743911b3835bedc1cba Mon Sep 17 00:00:00 2001
From: Fernando Apesteguia <fernando.apesteg...@gmail.com>
Date: Tue, 2 Nov 2021 18:34:15 +0100
Subject: [PATCH] [monitor] Fix untranslated string

Promote format string to gettext's PRIu64 instead of using SSSD's
SPRIuid which is not recognized. This caused the original string to be
truncated in the translation files.

How to test:

Apply patch and run:

make -C po/ update-pot

Translations should contain the full string now:

msgid "Running under %, must be root\n"

Resolves: #5738
---
 src/monitor/monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index c7610cb69b..55cb0838aa 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -2398,7 +2398,7 @@ int main(int argc, const char *argv[])
 
     uid = getuid();
     if (uid != 0) {
-        ERROR("Running under %"SPRIuid", must be root\n", uid);
+        ERROR("Running under %"PRIu64", must be root\n", (uint64_t) uid);
         sss_log(SSS_LOG_ALERT, "sssd must be run as root");
         return 8;
     }
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to