]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src/, lib/, tests/: Rename files defining strtcpy()
authorAlejandro Colomar <alx@kernel.org>
Sun, 12 Nov 2023 13:08:42 +0000 (14:08 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 22 Nov 2023 11:55:26 +0000 (12:55 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
15 files changed:
lib/Makefile.am
lib/console.c
lib/strtcpy.c [moved from lib/strlcpy.c with 93% similarity]
lib/strtcpy.h [moved from lib/strlcpy.h with 100% similarity]
lib/utmp.c
src/chage.c
src/chfn.c
src/chsh.c
src/gpasswd.c
src/login.c
src/passwd.c
src/su.c
src/sulogin.c
tests/unit/Makefile.am
tests/unit/test_strtcpy.c [moved from tests/unit/test_strlcpy.c with 98% similarity]

index d6b639c60f12231d4b6f88b202206114aef66869..1c482ef612358842baf928fdb87ef66cb9859ea5 100644 (file)
@@ -141,7 +141,7 @@ libshadow_la_SOURCES = \
        stpecpy.h \
        stpeprintf.c \
        stpeprintf.h \
-       strlcpy.h \
+       strtcpy.h \
        strtoday.c \
        sub.c \
        subordinateio.h \
index 9284cf6382a0889c197d988d142c1bc8ab63d7e8..b1d58c978855bbd3cd75cb654b9d8058afa65528 100644 (file)
@@ -13,7 +13,7 @@
 #include <stdio.h>
 #include "getdef.h"
 #include "prototypes.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 #ident "$Id$"
 
similarity index 93%
rename from lib/strlcpy.c
rename to lib/strtcpy.c
index 58773b71567a0009e68635004c16b596125e61f4..09800470343e626249c62f7ca26e73f6f52e1109 100644 (file)
@@ -11,7 +11,7 @@
 
 #ident "$Id$"
 
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 
 extern inline ssize_t strtcpy(char *restrict dst, const char *restrict src,
similarity index 100%
rename from lib/strlcpy.h
rename to lib/strtcpy.h
index 56c6cd3fcc31d575d3f2602732e187f945fcb15d..fb5c093be4f2880fb703b44e474f4f54ffacd29a 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "alloc.h"
 #include "sizeof.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 #include "zustr2stp.h"
 
 #ident "$Id$"
index 0ee688943a851a9873654e82736a877f3326e53a..c3e457c97ab9e60bf2354301fe34b011dda72e71 100644 (file)
@@ -33,7 +33,7 @@
 #include "pwio.h"
 #include "shadowio.h"
 #include "shadowlog.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 #ifdef WITH_TCB
 #include "tcbfuncs.h"
 #endif
index c35cae4eeb27c49b77e262ef09de77d9f255dcc1..60e90c8aa41a6ab0bca202ff3af9366278c98f22 100644 (file)
@@ -32,7 +32,7 @@
 /*@-exitarg@*/
 #include "exitcodes.h"
 #include "shadowlog.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 /*
  * Global variables.
index c676f1f994736ac6c6bc112d5de209898f6ebe40..c11195ff939cae21e4f212ae7cd9757e959469ff 100644 (file)
@@ -31,7 +31,7 @@
 /*@-exitarg@*/
 #include "exitcodes.h"
 #include "shadowlog.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 #ifndef SHELLS_FILE
 #define SHELLS_FILE "/etc/shells"
index 9d972662a66a9212b8bd0b999034df0c4ffe494e..c08a50c8104ef76524764cb17a228aa7e0a14e04 100644 (file)
@@ -34,7 +34,7 @@
 /*@-exitarg@*/
 #include "exitcodes.h"
 #include "shadowlog.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 /*
  * Global variables
index c7572f71d74137c12f4bfca9af59e5f6779383ee..a4a59447de7dc51b498f9d408e86a2ef55a569b4 100644 (file)
@@ -36,7 +36,7 @@
 /*@-exitarg@*/
 #include "exitcodes.h"
 #include "shadowlog.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 #ifdef USE_PAM
 #include "pam_defs.h"
index 13eeb426d45207509bfe033709eb1e746285f113..6760861958230dc4980a4cf0690cd9b565cf7867 100644 (file)
@@ -32,7 +32,7 @@
 #include "pwio.h"
 #include "shadowio.h"
 #include "shadowlog.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 /*
  * exit status values
index 6f66b3e311756b2efc30e146cb5da16124864504..a5731335e85d30d9320934541d345acc70ebee93 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -57,7 +57,7 @@
 /*@-exitarg@*/
 #include "exitcodes.h"
 #include "shadowlog.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 /*
  * Global variables
index 8b43ee7ae9c49b12cb7a059efd658c8b7fad7c5c..4e1d601dd4b4f6a31cbf56e64bbe6ba1ad1ac3b7 100644 (file)
@@ -26,7 +26,7 @@
 /*@-exitarg@*/
 #include "exitcodes.h"
 #include "shadowlog.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 /*
  * Global variables
index 46794d66614681399c327c97491317245e24af56..a732c5f8548bd57509085d25236e97b3830c5851 100644 (file)
@@ -4,7 +4,7 @@ if HAVE_CMOCKA
 TESTS = $(check_PROGRAMS)
 
 check_PROGRAMS = \
-    test_strlcpy \
+    test_strtcpy \
     test_xasprintf
 
 if ENABLE_LOGIND
@@ -32,16 +32,16 @@ test_logind_LDADD = \
     $(LIBSYSTEMD) \
     $(NULL)
 
-test_strlcpy_SOURCES = \
-    ../../lib/strlcpy.c \
-    test_strlcpy.c \
+test_strtcpy_SOURCES = \
+    ../../lib/strtcpy.c \
+    test_strtcpy.c \
     $(NULL)
-test_strlcpy_CFLAGS = \
+test_strtcpy_CFLAGS = \
     $(AM_FLAGS) \
     $(NULL)
-test_strlcpy_LDFLAGS = \
+test_strtcpy_LDFLAGS = \
     $(NULL)
-test_strlcpy_LDADD = \
+test_strtcpy_LDADD = \
     $(CMOCKA_LIBS) \
     $(NULL)
 
similarity index 98%
rename from tests/unit/test_strlcpy.c
rename to tests/unit/test_strtcpy.c
index 0dec0b74d1ddb24828c4b70590a852d35d6a55ce..935a30cfb5133306e52a78a310399986d785e082 100644 (file)
@@ -15,7 +15,7 @@
 #include <cmocka.h>
 
 #include "sizeof.h"
-#include "strlcpy.h"
+#include "strtcpy.h"
 
 
 static void test_STRTCPY_trunc(void **state);