]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/, po/, src/: Rename stpeprintf() => seprintf()
authorAlejandro Colomar <alx@kernel.org>
Mon, 10 Feb 2025 14:06:34 +0000 (15:06 +0100)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Fri, 15 May 2026 10:06:49 +0000 (12:06 +0200)
The old name was too complex, and is inconsistent with all other
sprintf(3)-based APIs having just one letter for differentiation.
This allows breaking less lines.

The original name was chosen for differentiation with the buggy Plan9
API seprint(2).  However, 9front (the current fork where Plan9 is mainly
developed) has acknowledged the bug.  There's still no decision on
fixing the bug or not, due to the age of their code base, and the
projects depending on their library.  It is under consideration
inventing something like a seprint2(2) in 9front for replacement of
seprint(2), but there's no decision yet either.

Considering that 9front acknowledges their bug, and that they *may*
release a fixed API with a similar name, we may as well claim that our
seprintf() is also a fixed version of Plan9's seprint(2).  It has a
different name, after all (we terminate in 'f').

This commit was partially scripted with

$ find * -type f \
| xargs grep -l stpeprintf \
| xargs sed -i 's/stpeprintf/seprintf/g';

Signed-off-by: Alejandro Colomar <alx@kernel.org>
50 files changed:
configure.ac
lib/Makefile.am
lib/idmapping.c
lib/string/README
lib/string/sprintf/seprintf.c [new file with mode: 0644]
lib/string/sprintf/seprintf.h [new file with mode: 0644]
lib/string/sprintf/stpeprintf.c [deleted file]
lib/string/sprintf/stpeprintf.h [deleted file]
po/bs.po
po/ca.po
po/cs.po
po/da.po
po/de.po
po/dz.po
po/el.po
po/es.po
po/eu.po
po/fi.po
po/fr.po
po/gl.po
po/he.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/ka.po
po/kk.po
po/km.po
po/ko.po
po/nb.po
po/ne.po
po/nl.po
po/nn.po
po/pl.po
po/pt.po
po/pt_BR.po
po/ro.po
po/ru.po
po/shadow.pot
po/sk.po
po/sq.po
po/sv.po
po/tl.po
po/tr.po
po/uk.po
po/vi.po
po/zh_CN.po
po/zh_TW.po
src/chfn.c
src/groupmod.c

index f87c0a7b24d024b9a2ffdaa4be23756c7ea91c63..77ceb52f7109ddc8b8251a828162c7136ebcea9a 100644 (file)
@@ -47,7 +47,7 @@ AC_CHECK_FUNCS([arc4random_buf \
        updwtmpx innetgr \
        getspnam_r \
        rpmatch \
-       memset_explicit explicit_bzero stpecpy stpeprintf])
+       memset_explicit explicit_bzero stpecpy seprintf])
 AC_SYS_LARGEFILE
 
 dnl Checks for typedefs, structures, and compiler characteristics.
index 1ee8f1affe63e67b881dbc364be12c19486a67a5..28ec53ef6b971b602ac6a48864abbf3a36b5aeb6 100644 (file)
@@ -203,8 +203,8 @@ libshadow_la_SOURCES = \
        string/memset/memzero.h \
        string/sprintf/aprintf.c \
        string/sprintf/aprintf.h \
-       string/sprintf/stpeprintf.c \
-       string/sprintf/stpeprintf.h \
+       string/sprintf/seprintf.c \
+       string/sprintf/seprintf.h \
        string/sprintf/stprintf.c \
        string/sprintf/stprintf.h \
        string/strchr/strchrcnt.c \
index 88a0c00e475780b5fe159ff77f07b4cf2adf82e5..77631ec18a266aad0ec064d28b35256be4b88d23 100644 (file)
@@ -27,7 +27,7 @@
 #include "prototypes.h"
 #include "shadowlog.h"
 #include "sizeof.h"
-#include "string/sprintf/stpeprintf.h"
+#include "string/sprintf/seprintf.h"
 #include "string/strcmp/streq.h"
 #include "string/strerrno.h"
 
@@ -184,13 +184,13 @@ void write_mapping(int proc_dir_fd, int ranges, const struct map_range *mappings
        mapping = mappings;
        for (idx = 0; idx < ranges; idx++, mapping++) {
                /* Append this range to the string that will be written */
-               pos = stpeprintf(pos, end, "%lu %lu %lu\n",
+               pos = seprintf(pos, end, "%lu %lu %lu\n",
                                 mapping->upper,
                                 mapping->lower,
                                 mapping->count);
        }
        if (pos == end || pos == NULL) {
-               fprintf(log_get_logfd(), _("%s: stpeprintf failed!\n"), log_get_progname());
+               fprintf(log_get_logfd(), _("%s: seprintf failed!\n"), log_get_progname());
                exit(EXIT_FAILURE);
        }
 
index 78cd6c713a348a9074af005e4de0c3ef79bb3ef5..02b4bdc00c7c58eb334825f62b86cfa048f4a8dd 100644 (file)
@@ -220,7 +220,7 @@ sprintf/ - Formatted string creation
     stprintf_a()
        Like stprintf(), but takes an array.
 
-    seprintf()  // Current name: stpeprintf())
+    seprintf()
        Similar to stprintf(), but takes a pointer to the end instead of
        a size.  This makes it safer for chaining several calls.
 
diff --git a/lib/string/sprintf/seprintf.c b/lib/string/sprintf/seprintf.c
new file mode 100644 (file)
index 0000000..3be154f
--- /dev/null
@@ -0,0 +1,17 @@
+// SPDX-FileCopyrightText: 2022-2025, Alejandro Colomar <alx@kernel.org>
+// SPDX-License-Identifier: BSD-3-Clause
+
+
+#include "config.h"
+
+#include "string/sprintf/seprintf.h"
+
+#include <stdarg.h>
+
+
+#if !defined(HAVE_SEPRINTF)
+extern inline char *seprintf(char *dst, char *end, const char *restrict fmt,
+    ...);
+extern inline char *vseprintf(char *dst, char *end, const char *restrict fmt,
+    va_list ap);
+#endif
diff --git a/lib/string/sprintf/seprintf.h b/lib/string/sprintf/seprintf.h
new file mode 100644 (file)
index 0000000..e1a2637
--- /dev/null
@@ -0,0 +1,65 @@
+// SPDX-FileCopyrightText: 2022-2024, Alejandro Colomar <alx@kernel.org>
+// SPDX-License-Identifier: BSD-3-Clause
+
+
+#ifndef SHADOW_INCLUDE_LIB_STRING_SPRINTF_SEPRINTF_H_
+#define SHADOW_INCLUDE_LIB_STRING_SPRINTF_SEPRINTF_H_
+
+
+#include "config.h"
+
+#include <stdarg.h>
+#include <stddef.h>
+
+#include "attr.h"
+#include "string/sprintf/stprintf.h"
+
+
+#if !defined(HAVE_SEPRINTF)
+// seprintf - string end-pointer print formatted
+format_attr(printf, 3, 4)
+inline char *seprintf(char *dst, char *end, const char *restrict fmt, ...);
+// vseprintf - va_list string end-pointer print formatted
+format_attr(printf, 3, 0)
+inline char *vseprintf(char *dst, char *end, const char *restrict fmt,
+    va_list ap);
+#endif
+
+
+#if !defined(HAVE_SEPRINTF)
+inline char *
+seprintf(char *dst, char *end, const char *restrict fmt, ...)
+{
+       char     *p;
+       va_list  ap;
+
+       va_start(ap, fmt);
+       p = vseprintf(dst, end, fmt, ap);
+       va_end(ap);
+
+       return p;
+}
+#endif
+
+
+#if !defined(HAVE_SEPRINTF)
+inline char *
+vseprintf(char *dst, char *end, const char *restrict fmt, va_list ap)
+{
+       int        len;
+       ptrdiff_t  size;
+
+       if (dst == NULL)
+               return NULL;
+
+       size = end - dst;
+       len = vstprintf(dst, size, fmt, ap);
+       if (len == -1)
+               return NULL;
+
+       return dst + len;
+}
+#endif
+
+
+#endif  // include guard
diff --git a/lib/string/sprintf/stpeprintf.c b/lib/string/sprintf/stpeprintf.c
deleted file mode 100644 (file)
index d195931..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// SPDX-FileCopyrightText: 2022-2024, Alejandro Colomar <alx@kernel.org>
-// SPDX-License-Identifier: BSD-3-Clause
-
-
-#include "config.h"
-
-#include "string/sprintf/stpeprintf.h"
-
-#include <stdarg.h>
-
-
-#if !defined(HAVE_STPEPRINTF)
-extern inline char *stpeprintf(char *dst, char *end, const char *restrict fmt,
-    ...);
-extern inline char *vstpeprintf(char *dst, char *end, const char *restrict fmt,
-    va_list ap);
-#endif
diff --git a/lib/string/sprintf/stpeprintf.h b/lib/string/sprintf/stpeprintf.h
deleted file mode 100644 (file)
index 4345722..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-// SPDX-FileCopyrightText: 2022-2024, Alejandro Colomar <alx@kernel.org>
-// SPDX-License-Identifier: BSD-3-Clause
-
-
-#ifndef SHADOW_INCLUDE_LIB_STRING_SPRINTF_STPEPRINTF_H_
-#define SHADOW_INCLUDE_LIB_STRING_SPRINTF_STPEPRINTF_H_
-
-
-#include "config.h"
-
-#include <stdarg.h>
-#include <stddef.h>
-
-#include "attr.h"
-#include "string/sprintf/stprintf.h"
-
-
-#if !defined(HAVE_STPEPRINTF)
-// stpeprintf - string offset-pointer end-pointer print formatted
-format_attr(printf, 3, 4)
-inline char *stpeprintf(char *dst, char *end, const char *restrict fmt, ...);
-// vstpeprintf - va_list string offset-pointer end-pointer print formatted
-format_attr(printf, 3, 0)
-inline char *vstpeprintf(char *dst, char *end, const char *restrict fmt,
-    va_list ap);
-#endif
-
-
-#if !defined(HAVE_STPEPRINTF)
-inline char *
-stpeprintf(char *dst, char *end, const char *restrict fmt, ...)
-{
-       char     *p;
-       va_list  ap;
-
-       va_start(ap, fmt);
-       p = vstpeprintf(dst, end, fmt, ap);
-       va_end(ap);
-
-       return p;
-}
-#endif
-
-
-#if !defined(HAVE_STPEPRINTF)
-inline char *
-vstpeprintf(char *dst, char *end, const char *restrict fmt, va_list ap)
-{
-       int        len;
-       ptrdiff_t  size;
-
-       if (dst == NULL)
-               return NULL;
-
-       size = end - dst;
-       len = vstprintf(dst, size, fmt, ap);
-       if (len == -1)
-               return NULL;
-
-       return dst + len;
-}
-#endif
-
-
-#endif  // include guard
index 3f4181462860e0bf7d61713d5c0e241fcdab9a15..49d1fc2c751775224f8cfa0edf0709c4d007ea13 100644 (file)
--- a/po/bs.po
+++ b/po/bs.po
@@ -205,7 +205,7 @@ msgid "%s: Could not set caps\n"
 msgstr "%s: nepoznat član %s\n"
 
 #, fuzzy, c-format
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "nepoznata grupa: %s\n"
 
 #, fuzzy, c-format
index 26457b447f0899681254611b983790ce24e7b011..a6efb196065ebeb7e9b548c9ee8f6717aa51cf19 100644 (file)
--- a/po/ca.po
+++ b/po/ca.po
@@ -229,8 +229,8 @@ msgid "%s: Could not set caps\n"
 msgstr "%s: No s'han pogut establir les «capabilities»\n"
 
 #, c-format
-msgid "%s: stpeprintf failed!\n"
-msgstr "%s: ha fallat stpeprintf!\n"
+msgid "%s: seprintf failed!\n"
+msgstr "%s: ha fallat seprintf!\n"
 
 #, c-format
 msgid "%s: open of %s failed: %s\n"
index 615ce68e70eece6ac37d5ce120d53ae26f461628..29ac71e99b0faa0938fca7430a5f98a2c84e2c50 100644 (file)
--- a/po/cs.po
+++ b/po/cs.po
@@ -228,7 +228,7 @@ msgstr "Nelze nastavit jméno uživatele %s\n"
 
 #, fuzzy, c-format
 #| msgid "%s: snprintf failed!\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: snprintf selhalo!\n"
 
 #, c-format
index 20666eddb2af778956ccf2e5fab8ab5858ee430b..73ccfa8b02ab5f3d719e8acf3d7cc5cadcb6d25d 100644 (file)
--- a/po/da.po
+++ b/po/da.po
@@ -244,7 +244,7 @@ msgstr "Kunne ikke angive navn for %s\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: Linje %d: chown %s fejlede: %s\n"
 
 #, fuzzy, c-format
index 92d777fd60f7407cba2a7636f15b2da9feaaecaf..bd8f04f4ced7633c2db8bb20a4e35a51e0ee2cc1 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -238,7 +238,7 @@ msgstr "Name für %s konnte nicht gesetzt werden\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: Zeile %d: chown %s (Eigentümer ändern) fehlgeschlagen: %s\n"
 
 #, fuzzy, c-format
index 59771609f9f3272c4558eb424b1d69984728b8b9..1cb6713e62c4e8bfa9a8b0e0a5e08e66afe30924 100644 (file)
--- a/po/dz.po
+++ b/po/dz.po
@@ -215,7 +215,7 @@ msgstr "རིམ་སྒྲིག་བརྡ་དོན་གྱི་དོ
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: ཡིག་སྣོད་ཁ་ཕྱེ་མི་ཚུགས།\n"
 
 #, fuzzy, c-format
index 18fdc8a90afc1552ba98caf087fc71bbcdd34437..59c010eaaf6f00b093ab0d69268629c430709dac 100644 (file)
--- a/po/el.po
+++ b/po/el.po
@@ -238,7 +238,7 @@ msgstr "Αδυναμία ρύθμισης του ονόματος χρήστη %
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: αδυναμία ανοίγματος του αρχείου\n"
 
 #, fuzzy, c-format
index 54863bfad344a9fe6223a907fd8280fc78711d91..e85b375dbc64d13fedc58a871c33c22a953cfa8a 100644 (file)
--- a/po/es.po
+++ b/po/es.po
@@ -264,7 +264,7 @@ msgstr "No se pudo reservar espacio para la información de configuración.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: no se puede abrir el fichero\n"
 
 #, fuzzy, c-format
index f78b0ea44e8ddd2a73ecd533739619287bdae5e9..d6e2d45756e9a578c33a8021b5fe92830bdbe8c2 100644 (file)
--- a/po/eu.po
+++ b/po/eu.po
@@ -221,7 +221,7 @@ msgstr "Ezin izan da lekua esleitu, konfigurazioaren informaziorako.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: %d lerroa: chown %s-ek huts egin du: %s\n"
 
 #, fuzzy, c-format
index 94d4d1d7b9386b28ca2c4203e7d3836438c68688..0774becb02502f61dbf570cb361314726e852b63 100644 (file)
--- a/po/fi.po
+++ b/po/fi.po
@@ -209,7 +209,7 @@ msgstr "Asetustiedoille ei voi varata tilaa.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: tiedosta ei voi avata\n"
 
 #, fuzzy, c-format
index 57c3531daf9191f32f4d2add83c5a3e5add57bb2..6132505fee39b1ba995c891e4004ed361c26db99 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -254,8 +254,8 @@ msgid "%s: Could not set caps\n"
 msgstr "%s : Impossible de définir les plafonds\n"
 
 #, c-format
-msgid "%s: stpeprintf failed!\n"
-msgstr "%s : échec de stpeprintf !\n"
+msgid "%s: seprintf failed!\n"
+msgstr "%s : échec de seprintf !\n"
 
 #, c-format
 msgid "%s: open of %s failed: %s\n"
index bbc7dfcc9f3c1a0d72b3edefd6c0df4b63947710..f702fbdc936c0d5bf73903c0a66061998981e770 100644 (file)
--- a/po/gl.po
+++ b/po/gl.po
@@ -211,7 +211,7 @@ msgstr "Non se puido reservar espacio para a información de configuración.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: non se pode abrir o ficheiro\n"
 
 #, fuzzy, c-format
index 1648c78d581d652e686da648b82a5cb0a406d603..c667720fdb4f59838cb425284a5ac052db9e06ff 100644 (file)
--- a/po/he.po
+++ b/po/he.po
@@ -205,7 +205,7 @@ msgid "%s: Could not set caps\n"
 msgstr "לא יכול להקצות מקום בשביל מידע על הקונפיגורציה.\n"
 
 #, fuzzy, c-format
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: שורה %d: לא יכול לעדכן רשומת סיסמה\n"
 
 #, fuzzy, c-format
index e7bf22a7c875b671a28b5fa65a9552df8c5c6000..1d0691cb00e0aa277e649c18d87a05214532d919 100644 (file)
--- a/po/hu.po
+++ b/po/hu.po
@@ -206,7 +206,7 @@ msgstr "Sikertelen helyfoglalás a beállítási infónak.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: nem tudom megnyitni a fájlt\n"
 
 #, fuzzy, c-format
index 4c070a075255def43a022232faffc78607d5a934..3a71f03369ff65d2ae309514ab8496a81a7b2e95 100644 (file)
--- a/po/id.po
+++ b/po/id.po
@@ -205,7 +205,7 @@ msgstr "Tidak dapat mengalokasikan ruang untuk informasi konfigurasi.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: tidak dapat membuka berkas\n"
 
 #, fuzzy, c-format
index 4d3ec5cb9b9a18e387cde628734864fb40955e57..37f6a0b27e8fe2f26c8b9b8b5ca3f33bd12a9b8b 100644 (file)
--- a/po/it.po
+++ b/po/it.po
@@ -232,7 +232,7 @@ msgstr "Impossibile allocare spazio per le informazioni di configurazione.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: impossibile aprire il file\n"
 
 #, fuzzy, c-format
index 426e3302c747a48c7695538d2fc575e8333f244a..2f32c0e800c59036a337f2531301b0b996d159e0 100644 (file)
--- a/po/ja.po
+++ b/po/ja.po
@@ -231,7 +231,7 @@ msgstr "%s の名前を設定できません\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: %d 行: chown %s が失敗しました: %s\n"
 
 #, fuzzy, c-format
index 9456809684070b7fa7baf2aa679aaf4a646f8bdf..a60101998393898fffd9bfe9f1cbbc1f5f5b646c 100644 (file)
--- a/po/ka.po
+++ b/po/ka.po
@@ -227,8 +227,8 @@ msgid "%s: Could not set caps\n"
 msgstr "%s: caps-ების დაყენების შედომა\n"
 
 #, c-format
-msgid "%s: stpeprintf failed!\n"
-msgstr "%s: stpeprintf ჩავარდა!\n"
+msgid "%s: seprintf failed!\n"
+msgstr "%s: seprintf ჩავარდა!\n"
 
 #, c-format
 msgid "%s: open of %s failed: %s\n"
index 60cb95cd39f87781af75ff22f8a67dc41b5caf11..988b96bdedb3cf59a5a8b20a45b4753d1dffba30 100644 (file)
--- a/po/kk.po
+++ b/po/kk.po
@@ -229,7 +229,7 @@ msgstr "%s үшін атын орнату мүмкін емес\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: жол %d: chown %s сәтсіз: %s\n"
 
 #, fuzzy, c-format
index 513f284989bf180ddb2d0a20a6a680f7464594d2..3e49c01773cd4e57e937774a4535f853ba54bca6 100644 (file)
--- a/po/km.po
+++ b/po/km.po
@@ -219,7 +219,7 @@ msgstr "មិន​អាច​បម្រុង​ទុក​ទំហំ​
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s ៖ មិន​អាច​បើក​​ឯកសារ​បានទេ\n"
 
 #, fuzzy, c-format
index 980c30f387a7a3297880f4752cd52c9a5406453a..89ea54d3ed85f86d3fdfc9cc795ed9873659d56f 100644 (file)
--- a/po/ko.po
+++ b/po/ko.po
@@ -212,7 +212,7 @@ msgid "%s: Could not set caps\n"
 msgstr "설정 정보를 위한 공간을 확보할 수 없습니다.\n"
 
 #, fuzzy, c-format
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: %d번 줄: chown 실패했습니다\n"
 
 #, fuzzy, c-format
index 1eb1e3be355fb539487a1a5a5a442e873d5b6676..33e61d3ba1a50a3361d6d4500ec584c8490f5f1d 100644 (file)
--- a/po/nb.po
+++ b/po/nb.po
@@ -251,7 +251,7 @@ msgstr "Klarte ikke å endre navn på %s\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: klarte ikke å åpne fil\n"
 
 #, fuzzy, c-format
index 08f423fab67d86e613868904fd4e062b1706e205..abcea0892239c61d299bc213f8933197cf634426 100644 (file)
--- a/po/ne.po
+++ b/po/ne.po
@@ -212,7 +212,7 @@ msgstr "कनफिगरेसन सूचनाको लागि खाल
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: फाइल खोल्न सकिएन\n"
 
 #, fuzzy, c-format
index aa824d337729997ed7f7ec34d2077a95a45634fb..79ec110c76de0f04d48a76ec451d0d8c3c016208 100644 (file)
--- a/po/nl.po
+++ b/po/nl.po
@@ -232,8 +232,8 @@ msgid "%s: Could not set caps\n"
 msgstr "%s: Kon hoofdletters niet instellen\n"
 
 #, c-format
-msgid "%s: stpeprintf failed!\n"
-msgstr "%s: stpeprintf is mislukt!\n"
+msgid "%s: seprintf failed!\n"
+msgstr "%s: seprintf is mislukt!\n"
 
 #, c-format
 msgid "%s: open of %s failed: %s\n"
index 60b7b537150b08775830989fcba12b32dec8d600..e00c1bb0265660b95d420a31ca552b6e326d86b4 100644 (file)
--- a/po/nn.po
+++ b/po/nn.po
@@ -205,7 +205,7 @@ msgstr "Klarte ikkje finna plass for oppsettsinformasjon.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: klarer ikkje opna fil\n"
 
 #, fuzzy, c-format
index 259d2c10b00900c2f446ba06d6e891f275f54fd5..c1dfdea148f2ac7ca9bbc7199d68620ff2ebf171 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -216,7 +216,7 @@ msgstr "Nie można przydzielić miejsca dla informacji o konfiguracji.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: nie można otworzyć pliku\n"
 
 #, fuzzy, c-format
index cdc21955683a44f36176e9ffce9665d792e6bfc3..6620c9162008ce0f452d9835f80552a08fe3c54e 100644 (file)
--- a/po/pt.po
+++ b/po/pt.po
@@ -243,7 +243,7 @@ msgstr "Não foi possível definir nome para %s\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: linha %d: chown %s falhou: %s\n"
 
 #, fuzzy, c-format
index e1e2c6a83bb13091964cee97404cd2f8bc67b344..6094bb4ee69fffc2d2cec5f679f7f86ffa02f95c 100644 (file)
@@ -235,7 +235,7 @@ msgstr "Não foi possível alocar espaço para a informação de configuração.
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s : não foi possível abrir arquivo\n"
 
 #, fuzzy, c-format
index a3e1b53b545ac476040b39a2e0b1b79ec865a385..062c84749c129ae15473bc11d6c761b7af6620b6 100644 (file)
--- a/po/ro.po
+++ b/po/ro.po
@@ -242,8 +242,8 @@ msgid "%s: Could not set caps\n"
 msgstr "%s: Nu s-au putut defini capacitățile\n"
 
 #, c-format
-msgid "%s: stpeprintf failed!\n"
-msgstr "%s: stpeprintf a eșuat!\n"
+msgid "%s: seprintf failed!\n"
+msgstr "%s: seprintf a eșuat!\n"
 
 #, c-format
 msgid "%s: open of %s failed: %s\n"
index ba4787cc8f4ddd866ea1cfed112b11be68e2c9be..d70989ff0022b0c3a7cc5199ba55f54199467707 100644 (file)
--- a/po/ru.po
+++ b/po/ru.po
@@ -244,7 +244,7 @@ msgstr "Невозможно задать имя для %s\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: строка %d: вызов chown %s завершился неудачно: %s\n"
 
 #, fuzzy, c-format
index 539d387da0e424475126d6816074da8e837a191c..1c3f94f1c68bfef72f0d75825ee93d7d6af0c588 100644 (file)
@@ -205,7 +205,7 @@ msgid "%s: Could not set caps\n"
 msgstr ""
 
 #, c-format
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr ""
 
 #, c-format
index bd632aedfc3ff05883e5112c55db58a9b0d5fd32..1518c234ebc2257b837e17bfaaa56ea6af89d106 100644 (file)
--- a/po/sk.po
+++ b/po/sk.po
@@ -218,7 +218,7 @@ msgstr "Na konfiguračné údaje sa nedá vyhradiť dostatok miesta.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: nedá sa otvoriť súbor\n"
 
 #, fuzzy, c-format
index 796c11755bfd1cdb6e390e4e551d97d716f4f482..eb4983f8d423c665b55a3fba06b4965f963bce59 100644 (file)
--- a/po/sq.po
+++ b/po/sq.po
@@ -206,7 +206,7 @@ msgid "%s: Could not set caps\n"
 msgstr "Kujdes: grup i panjohur %s\n"
 
 #, fuzzy, c-format
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "Kujdes: grup i panjohur %s\n"
 
 #, fuzzy, c-format
index e7d79859b69e557985b8cc45e928483266e251e9..0a7d789d0bf91b45c243d9d724a1544e4c91d78c 100644 (file)
--- a/po/sv.po
+++ b/po/sv.po
@@ -231,7 +231,7 @@ msgstr "Kunde inte allokera plats för konfigurationsinformationen.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: rad %d: chown %s misslyckades: %s\n"
 
 #, fuzzy, c-format
index a104c11bb50088df11cc63ebf301e3b2bdbe1d73..95a4aa1c495d5f279f82ddf32a363bf22ed88f2d 100644 (file)
--- a/po/tl.po
+++ b/po/tl.po
@@ -219,7 +219,7 @@ msgstr "Hindi makapaglaan ng lugar para sa impormasyong pagsasaayos.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: hindi mabuksan ang talaksan\n"
 
 #, fuzzy, c-format
index 91c2a541a72cd2f566a57959b5d4d2a0839a8714..e03d47648e7e3f9dec7afb8ee5f2c324fca0ccc9 100644 (file)
--- a/po/tr.po
+++ b/po/tr.po
@@ -211,7 +211,7 @@ msgstr "Yapılandırma bilgileri için yer ayrılamadı.\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: dosya açılamıyor\n"
 
 #, fuzzy, c-format
index 4fbb2eb82f764e57f3df163bd9e154a41cc68d21..1dc3cfe2f47a1666d5002f0db37936919f967126 100644 (file)
--- a/po/uk.po
+++ b/po/uk.po
@@ -235,7 +235,7 @@ msgstr "%s: не вдалося встановити можливості\n"
 
 #, fuzzy, c-format
 #| msgid "%s: snprintf failed!\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: помилка snprintf!\n"
 
 #, c-format
index ac1663886f6bb45dc3b4e029d5009e338b5c6f75..9191e4b0b9e241c62c7c0de61b1ed762c175641a 100644 (file)
--- a/po/vi.po
+++ b/po/vi.po
@@ -237,7 +237,7 @@ msgstr "Không thể đặt tên %s\n"
 
 #, fuzzy, c-format
 #| msgid "%s: line %d: chown %s failed: %s\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s: dòng %d: lỗi chown (thay đổi quyền sở hữu) %s: %s\n"
 
 #, fuzzy, c-format
index d1efe715a161de95b2f075f110c5723466141a0d..7bcf8d0dee960e9172805e19849c740962a0ae3b 100644 (file)
@@ -213,7 +213,7 @@ msgstr "%s:无法设置上限\n"
 
 #, fuzzy, c-format
 #| msgid "%s: snprintf failed!\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s:snprintf 失败\n"
 
 #, c-format
index be5782cfa13e8a3cab54362481f295153ba2a292..cdd64d8568265f8573d7f04223cc75e3f8da2d2a 100644 (file)
@@ -224,7 +224,7 @@ msgstr "無法設定 %s 的名稱\n"
 
 #, fuzzy, c-format
 #| msgid "%s: can't open file\n"
-msgid "%s: stpeprintf failed!\n"
+msgid "%s: seprintf failed!\n"
 msgstr "%s:無法打開檔案\n"
 
 #, fuzzy, c-format
index 28117655f0d94491f32c7cf7c5875cde985bd9f0..71875253e9fadd2d0ec08f0c4891bf6cfc28a333 100644 (file)
@@ -35,7 +35,7 @@
 #include "shadowlog.h"
 #include "sizeof.h"
 #include "sssd.h"
-#include "string/sprintf/stpeprintf.h"
+#include "string/sprintf/seprintf.h"
 #include "string/strcmp/streq.h"
 #include "string/strcpy/strtcpy.h"
 #include "string/strdup/strdup.h"
@@ -653,12 +653,12 @@ int main (int argc, char **argv)
        /* Build the new GECOS field by plastering all the pieces together.  */
        p = new_gecos;
        e = new_gecos + countof(new_gecos);
-       p = stpeprintf(p, e, "%s", fullnm);
-       p = stpeprintf(p, e, ",%s", roomno);
-       p = stpeprintf(p, e, ",%s", workph);
-       p = stpeprintf(p, e, ",%s", homeph);
+       p = seprintf(p, e, "%s", fullnm);
+       p = seprintf(p, e, ",%s", roomno);
+       p = seprintf(p, e, ",%s", workph);
+       p = seprintf(p, e, ",%s", homeph);
        if (!streq(slop, ""))
-               p = stpeprintf(p, e, ",%s", slop);
+               p = seprintf(p, e, ",%s", slop);
 
        if (p == e || p == NULL) {
                fprintf (stderr, _("%s: fields too long\n"), Prog);
index b019c0103e86e8a50cbeaa0a4eae95b6d1dc567b..e535a9e882719d7d1dcdd57ea3c2cdb3b37d9f6f 100644 (file)
@@ -35,7 +35,7 @@
 #include "shadow/gshadow/sgrp.h"
 #include "shadowlog.h"
 #include "sssd.h"
-#include "string/sprintf/stpeprintf.h"
+#include "string/sprintf/seprintf.h"
 #include "string/strcmp/streq.h"
 #include "string/strcpy/stpecpy.h"
 #include "string/strdup/strdup.h"
@@ -597,11 +597,11 @@ static void prepare_failure_reports (void)
        info_passwd.audit_msg  = pw;
        pw_end                 = pw + 512;
 
-       gr = stpeprintf(gr, gr_end, "changing %s; ", gr_dbname ());
+       gr = seprintf(gr, gr_end, "changing %s; ", gr_dbname());
 #ifdef SHADOWGRP
-       sgr = stpeprintf(sgr, sgr_end, "changing %s; ", sgr_dbname ());
+       sgr = seprintf(sgr, sgr_end, "changing %s; ", sgr_dbname());
 #endif
-       pw = stpeprintf(pw, pw_end, "changing %s; ", pw_dbname ());
+       pw = seprintf(pw, pw_end, "changing %s; ", pw_dbname());
 
        info_group.action   = gr;
 #ifdef SHADOWGRP
@@ -609,14 +609,11 @@ static void prepare_failure_reports (void)
 #endif
        info_passwd.action  = pw;
 
-       gr  = stpeprintf(gr, gr_end,
-                        "group %s/%ju", group_name, (uintmax_t) group_id);
+       gr  = seprintf(gr, gr_end, "group %s/%ju", group_name, (uintmax_t) group_id);
 #ifdef SHADOWGRP
-       sgr = stpeprintf(sgr, sgr_end,
-                        "group %s", group_name);
+       sgr = seprintf(sgr, sgr_end, "group %s", group_name);
 #endif
-       pw  = stpeprintf(pw, pw_end,
-                        "group %s/%ju", group_name, (uintmax_t) group_id);
+       pw  = seprintf(pw, pw_end, "group %s/%ju", group_name, (uintmax_t) group_id);
 
        if (nflg) {
                gr = stpecpy(gr, gr_end, ", new name: ");
@@ -636,10 +633,10 @@ static void prepare_failure_reports (void)
        }
        if (gflg) {
                gr = stpecpy(gr, gr_end, ", new gid: ");
-               stpeprintf(gr, gr_end, "%ju", (uintmax_t) group_newid);
+               seprintf(gr, gr_end, "%ju", (uintmax_t) group_newid);
 
                pw = stpecpy(pw, pw_end, ", new gid: ");
-               stpeprintf(pw, pw_end, "%ju", (uintmax_t) group_newid);
+               seprintf(pw, pw_end, "%ju", (uintmax_t) group_newid);
        }
 
 // FIXME: add a system cleanup