-
4ef08548cc
lib/must_be.h: is_same_type(): Add macro
Alejandro Colomar
2024-01-22 22:43:40 +01:00
-
9c5e433a3a
lib/must_be.h: is_same_typeof(): Rename macro
Alejandro Colomar
2024-01-22 22:42:46 +01:00
-
9340efbb0d
src/su.c: do_check_perms(): Fix -Wincompatible-pointer-types bug
Alejandro Colomar
2024-01-21 13:48:21 +01:00
-
0138819b2a
tests/unit/test_atoi_strtou_noneg.c: Test strtou[l]l_noneg()
Alejandro Colomar
2024-01-06 18:00:19 +01:00
-
f14670ee1a
lib/, src/: Replace strtou[l]l(3) by strtou[l]l_noneg()
Alejandro Colomar
2023-12-11 01:06:05 +01:00
-
4a2646f676
lib/atoi/strtou_noneg.[ch]: Add strtou[l]l_noneg()
Alejandro Colomar
2023-12-11 00:51:05 +01:00
-
4d835c7ea4
src/sulogin.c: Free previously allocated memory
Samanta Navarro
2024-01-18 11:53:41 +00:00
-
08ae7af111
src/sulogin.c: Remove 'static' from local variable, but keep initialization
Alejandro Colomar
2024-01-17 17:08:50 +01:00
-
4edda5d8ba
src/sulogin.c: Remove 'static' from a temporary variable
Alejandro Colomar
2024-01-17 17:02:27 +01:00
-
d2c28a402a
src/sulogin.c: Align local variables
Alejandro Colomar
2024-01-17 17:00:48 +01:00
-
1faf4d6469
src/sulogin.c: Make static variables local to main()
Alejandro Colomar
2024-01-17 16:57:02 +01:00
-
5214710432
src/sulogin.c: pw_entry(): Don't else after return
Alejandro Colomar
2024-01-17 16:52:12 +01:00
-
8679878c8b
lib/, src/, po/: pw_entry(): Move function to src/sulogin.c
Alejandro Colomar
2024-01-17 16:48:53 +01:00
-
2e56af1902
lib/, tests/: addsl(): Add addsl(), a variadic macro
Alejandro Colomar
2024-01-06 02:17:38 +01:00
-
2e5fc4c90b
lib/, tests/: addsl2(): Rename addsl() to addsl2()
Alejandro Colomar
2024-01-06 02:25:21 +01:00
-
eae0b02796
Release 4.14.3
4.14.3
Alejandro Colomar
2024-01-16 00:01:06 +01:00
-
1c6a1206bd
lib/sgetgrent.c: fix null pointer dereference
Samanta Navarro
2024-01-12 11:49:27 +00:00
-
1356b14a00
lib/defines.h: Don't wrap #undef in #ifdef
Alejandro Colomar
2024-01-12 01:58:28 +01:00
-
effdb14786
lib/idmapping.c: write_mapping(): Fixx off-by-one bug
Alejandro Colomar
2024-01-11 19:12:24 +01:00
-
6bec1cf37c
lib/: Use 'restrict' alongside [[gnu::access()]]
Alejandro Colomar
2024-01-06 13:41:16 +01:00
-
76e7de3fbb
lib/: Use ATTR_ACCESS() instead of /*@out@*/
Alejandro Colomar
2023-12-11 14:21:24 +01:00
-
561448443f
lib/: get[u]long(): Use ATTR_ACCESS() instead of /*@out@*/
Alejandro Colomar
2023-12-11 14:16:31 +01:00
-
9ca6b71e76
lib/: Remove incorrect /*@out@*/ comment from functions that read the pointee
Alejandro Colomar
2023-12-11 14:01:38 +01:00
-
f1b9f8d829
lib/: Remove /*@out@*/ comments in return type
Alejandro Colomar
2023-12-11 13:48:35 +01:00
-
7c1576cfb6
lib/: fgetsx(): Use ATTR_ACCESS() instead of /*@out@*/
Alejandro Colomar
2023-12-11 14:10:38 +01:00
-
a070b84f2e
lib/: run_command(): Use ATTR_ACCESS() instead of /*@out@*/
Alejandro Colomar
2023-12-11 13:36:53 +01:00
-
9ac5b2fc5a
lib/attr.h: Add ATTR_ACCESS()
Alejandro Colomar
2023-12-11 13:32:12 +01:00
-
a9e07c0feb
lib/sgetgrent.c: fix null pointer dereference
Samanta Navarro
2024-01-12 11:49:27 +00:00
-
4c0c7c52f1
lib/: get_pid(): Use the usual -1 as an error code
Alejandro Colomar
2023-12-02 01:21:01 +01:00
-
18c428a6c9
lib/, src/: get_uid(): Use the usual -1 as an error code
Alejandro Colomar
2023-12-02 00:27:04 +01:00
-
470baeabbd
lib/, src/: get_gid(): Use the usual -1 as an error code
Alejandro Colomar
2023-12-02 00:23:06 +01:00
-
ea253cb275
lib/, src/: getrange(): Use the usual -1 as an error code
Alejandro Colomar
2023-12-01 23:10:06 +01:00
-
c595ea7e87
lib/getrange.c: Reduce indentation
Alejandro Colomar
2023-12-30 14:08:13 +01:00
-
2a9b6d80e7
lib/, src/: getulong(): Use the usual -1 as an error code
Alejandro Colomar
2023-12-01 20:33:20 +01:00
-
2d581cb337
lib/, src/: getlong(): Use the usual -1 as an error code
Alejandro Colomar
2023-12-01 20:23:48 +01:00
-
173231a8ff
tests/unit/test_adds.c: Test addsl() and addsl3()
Alejandro Colomar
2023-12-20 22:09:36 +01:00
-
89e5a32966
lib/adds.[ch]: Add addsl() and addsl3()
Alejandro Colomar
2023-12-20 21:43:03 +01:00
-
1a383194ff
src/: Fix long/time_t handling
Tobias Stoeckmann
2023-12-14 12:11:28 +01:00
-
2d188a9987
src/passwd.c: Add overflow check
Tobias Stoeckmann
2023-12-20 20:48:54 +01:00
-
3b5ba41d3e
src/passwd.c: Switch to day precision
Tobias Stoeckmann
2023-12-14 11:54:00 +01:00
-
ecc3508877
lib/, src/: Remove SCALE definition
Tobias Stoeckmann
2023-12-13 20:25:51 +00:00
-
11091949be
man/: add BCRYPT and YESCRYPT information
Tobias Stoeckmann
2023-12-19 17:39:54 +01:00
-
f89ba6822d
man/: CONSOLE_GROUPS is only used without PAM
Tobias Stoeckmann
2023-12-20 18:55:09 +01:00
-
97ddb0d80c
man/: ENV_HZ is only used without PAM
Tobias Stoeckmann
2023-12-20 12:27:24 +01:00
-
0ee79295f6
lib/defines.h: Use 'time_t' for DAY
Alejandro Colomar
2023-12-20 17:56:32 +01:00
-
ca6425e54e
login.defs.5: Be specific that only -1 is allowed
Tobias Stoeckmann
2023-12-20 21:11:11 +01:00
-
b80c55946a
lib/getdef.c: Reject negative values in getdef_* except -1
Tobias Stoeckmann
2023-12-19 13:06:02 +01:00
-
8b8793920e
man/: Support compiling in build directory
Tobias Stoeckmann
2023-12-19 19:24:18 +01:00
-
ddbd3a36c1
tests/unit/test_sprintf.c: Test SNPRINTF()
Alejandro Colomar
2023-11-22 19:39:02 +01:00
-
cf9cc6963c
lib/, src/: Use SNPRINTF() instead of its pattern
Alejandro Colomar
2023-08-26 12:32:32 +02:00
-
8c6634d9bc
lib/string/sprintf.[ch]: Add [v]snprintf_()
Alejandro Colomar
2023-08-26 14:54:44 +02:00
-
ce4c4d4ad5
lib/string/sprintf.h: Add SNPRINTF() macro
Alejandro Colomar
2023-08-26 12:11:59 +02:00
-
9c39b13194
src/chfn,chpasswd,newusers: declare fatal_exit() NORETURN
Christian Göttsche
2023-12-11 18:12:24 +01:00
-
d2e7edcd00
lib: avoid format truncation
Christian Göttsche
2023-12-11 17:53:28 +01:00
-
ce3a4ac7a3
lib: avoid double close on error
Christian Göttsche
2023-12-11 17:45:26 +01:00
-
cdb2490ab6
Update close(2) checking
Christian Göttsche
2023-12-11 17:32:13 +01:00
-
92b889b671
src/useradd: free string
Christian Göttsche
2023-12-11 17:27:44 +01:00
-
6178f5a3df
lib/failure,utmp: update error messages
Christian Göttsche
2023-12-11 17:21:25 +01:00
-
7f20bb88ad
lib/utmp: merge file access
Christian Göttsche
2023-12-11 17:18:38 +01:00
-
0d7cb003b7
src/useradd: avoid usage of sprintf
Christian Göttsche
2023-12-11 17:13:43 +01:00
-
95a8de2a0a
src/usermod,groups: use checked malloc
Christian Göttsche
2023-12-11 17:09:06 +01:00
-
76bbce3564
lib/, src/: Align variable definitions
Alejandro Colomar
2023-08-26 13:16:42 +02:00
-
ce0fc161b4
src/login.c: Group preprocessor conditionals
Alejandro Colomar
2023-08-26 12:35:53 +02:00
-
ab260fcd1f
lib/defines.h: Remove ITI_AGING
Tobias Stoeckmann
2023-12-12 17:37:30 +01:00
-
ef95bb7ed1
src/su.c: Fix type of variable
Alejandro Colomar
2023-12-13 15:46:53 +01:00
-
9858133cc6
lib/, src/: snprintf(3) already terminates strings with NUL
Alejandro Colomar
2023-08-26 11:53:25 +02:00
-
93a5c47c2c
lib/: Use ATTR_STRING() on stpecpy() and strtcpy()
Alejandro Colomar
2023-11-26 18:52:56 +01:00
-
a61cf0068b
lib/attr.h: Add ATTR_STRING() attribute macro
Alejandro Colomar
2023-11-26 18:38:40 +01:00
-
1c464d9a2d
lib/, src/: Fix error handling after strto[u]l[l](3)
Alejandro Colomar
2023-12-01 19:31:16 +01:00
-
f6701d3efa
lib/prefix_flag.c: Invert conditional to remove a branch
Alejandro Colomar
2023-12-01 18:57:31 +01:00
-
ad1e0e9f96
lib/string/strtcpy.h: Don't use a ternary op, to silence a -Wsign-compare warning
Alejandro Colomar
2023-09-02 14:33:47 +02:00
-
62772039b7
src/gpasswd.c: Simplify cpp conditional
Alejandro Colomar
2023-09-02 16:19:58 +02:00
-
0c1ca49be3
src/gpasswd.c: Reduce scope of cpp conditional
Alejandro Colomar
2023-09-02 16:19:58 +02:00
-
9035f90510
src/gpasswd.c: Mark failure() as [[noreturn]]
Alejandro Colomar
2023-09-02 16:17:54 +02:00
-
ccc055d9d9
src/gpasswd.c: Move if out of cpp conditional
Alejandro Colomar
2023-09-02 16:14:03 +02:00
-
1fcf807949
src/login_nopam.c: Add missing 'const'
Alejandro Colomar
2023-09-02 16:10:32 +02:00
-
d2aa177c50
autogen.sh: CFLAGS: Add -Wno-expansion-to-defined
Alejandro Colomar
2023-09-02 15:59:08 +02:00
-
82484117b3
lib/obscure.c: Mark parameter as [[maybe_unused]]
Alejandro Colomar
2023-09-02 15:50:43 +02:00
-
5ba6cd8545
lib/loginprompt.c: Remove dead code
Alejandro Colomar
2023-09-02 15:46:56 +02:00
-
5e0c61cce3
lib/limits.c: Check for overflow without invoking UB
Alejandro Colomar
2023-09-02 15:43:24 +02:00
-
9b798b584a
lib/limits.c: Fix wrong error check
Alejandro Colomar
2023-09-02 15:24:06 +02:00
-
00e4e0c735
lib/copydir.c: Cosmetic
Alejandro Colomar
2023-09-02 14:58:55 +02:00
-
97e9d60133
lib/commonio.c: Use uintmax_t to print nlink_t
Alejandro Colomar
2023-09-02 14:29:07 +02:00
-
6be85b0baf
lib/chkname.c: Use tmp variable to avoid a -Wsign-compare warning
Alejandro Colomar
2023-09-02 14:15:43 +02:00
-
028e3e2764
autogen.sh: CFLAGS: Add -Wextra
Alejandro Colomar
2023-09-02 13:40:12 +02:00
-
fc8389331e
lib/string/: Fortify source of strtcpy(), stpecpy(), and zustr2stp()
Alejandro Colomar
2023-11-24 23:56:17 +01:00
-
72060a2b2b
lib/env.c: Replace strncpy(3) call by stpcpy(mempcpy(), "")
Alejandro Colomar
2023-11-15 22:49:13 +01:00
-
dbb37b1b31
lib/string/: Move string-related files to string/ subdir
Alejandro Colomar
2023-11-28 02:48:37 +01:00
-
d1ad64b40f
configure.ac: AM_INIT_AUTOMAKE: Use [subdir-objects]
Alejandro Colomar
2023-12-02 21:55:02 +01:00
-
4f16458b6c
lib/, src/: Say 'long' instead of 'long int'
Alejandro Colomar
2023-11-28 02:05:45 +01:00
-
44b8f7b3ef
lib/attr.h, lib/, src/: Move attributes to new header file
Alejandro Colomar
2023-11-28 02:27:08 +01:00
-
5abe0811b8
src: add missing declaration of
getdef_bool
Sergei Trofimovich
2023-12-01 23:04:43 +00:00
-
0d2fa501ec
lib/defines.h: Remove condition on __STRICT_ANSI__
Alejandro Colomar
2023-11-28 00:12:28 +01:00
-
218235e9dd
tests/unit/test_chkname.c: Test is_valid_user_name()
Alejandro Colomar
2023-11-26 23:21:44 +01:00
-
4b89ac41cb
chsh: limit acceptable shells to absolute paths
Tobias Stoeckmann
2023-11-11 23:10:55 +01:00
-
721b9096eb
lib/: Use NITEMS() instead of SIZEOF_ARRAY() where number of elements is meant
Alejandro Colomar
2023-11-23 01:06:52 +01:00
-
a5cddf243a
lib/chkname.c: Update regex for valid names
Alejandro Colomar
2023-11-13 13:33:37 +01:00
-
fe62fc48bf
tests/unit/test_strncpy.c: Test STRNCPY()
Alejandro Colomar
2023-11-16 11:42:26 +01:00
-
ce30dfe255
lib/: Use STRNCPY() instead of strncpy(3)
Alejandro Colomar
2023-11-15 22:36:19 +01:00
-
225530b7e1
lib/strncpy.h: Add STRNCPY() wrapper for strncpy(3)
Alejandro Colomar
2023-11-15 22:31:02 +01:00