Commit Graph

  • 191f04f7dc Use *array() allocation functions where appropriate Alejandro Colomar 2023-02-04 21:47:01 +0100
  • 727275a027 Use xcalloc(3) instead of its pattern Alejandro Colomar 2023-02-04 21:43:43 +0100
  • d81506de1e libmisc: Add safer allocation functions Alejandro Colomar 2023-02-04 21:13:59 +0100
  • 881c1d63a1 libmisc: Move xmalloc.c to alloc.c Alejandro Colomar 2023-02-19 20:40:16 +0100
  • a578617cc0 Use calloc(3) instead of its pattern Alejandro Colomar 2023-02-04 21:43:43 +0100
  • 1aa22c1467 Use reallocarray(3) instead of its pattern Alejandro Colomar 2023-02-04 23:20:38 +0100
  • 45c0003e53 Use reallocf(3) instead of its pattern Alejandro Colomar 2023-02-04 21:25:04 +0100
  • 56e4842db0 malloc(3) already sets errno to ENOMEM Alejandro Colomar 2023-02-04 23:37:55 +0100
  • 0e1d017993 Rely on realloc(NULL, ...) being equivalent to malloc(...) Alejandro Colomar 2023-02-04 21:21:36 +0100
  • 5c5dc75641 libmisc: agetpass(): Fix bug detecting truncation Alejandro Colomar 2023-02-19 19:26:56 +0100
  • baae5b4a06 find_new_[gu]id(): Skip over IDs that are reserved for legacy reasons Martin Kletzander 2023-02-01 15:36:41 +0100
  • 0dfeb9e674 Fix comments Samanta Navarro 2023-02-16 11:57:03 +0000
  • c53b36fe85 Fix grammar Samanta Navarro 2023-02-16 11:54:14 +0000
  • b8ea76ba72 Fix typo Samanta Navarro 2023-02-16 11:53:52 +0000
  • d5d1932370 Fix typos Samanta Navarro 2023-02-16 11:52:23 +0000
  • 5956cea1d1 Use stpecpy() where appropriate Alejandro Colomar 2023-02-10 22:52:25 +0100
  • 709e6b4497 Add stpecpy() Alejandro Colomar 2023-02-10 22:34:37 +0100
  • e0e9e57a72 Add mempcpy(3) Alejandro Colomar 2023-02-10 22:16:21 +0100
  • 8a9285aacb Remove unnecessary NUL terminators Alejandro Colomar 2023-01-30 00:56:57 +0100
  • 46610792e9 Use stpeprintf() where appropriate Alejandro Colomar 2023-01-30 00:54:07 +0100
  • 7e213cfb50 Add stpeprintf() Alejandro Colomar 2023-01-30 00:19:56 +0100
  • a187ad8e9e agetpass.c: Use SPDX tags Alejandro Colomar 2023-01-29 21:44:17 +0100
  • ca9e309d30 Fix VPATH build Martin Kletzander 2023-02-07 09:34:59 +0100
  • 5da8388fc6 ttytype(): Fix race Alejandro Colomar 2023-02-03 20:32:12 +0100
  • bddcd9b095 Remove superfluous casts Alejandro Colomar 2023-02-01 13:50:48 +0100
  • 66daa74232 run on github runner Serge Hallyn 2023-02-09 08:38:02 -0600
  • 8728bd87ed tests: print default timeout message to stderr Serge Hallyn 2023-02-07 21:12:59 -0600
  • 6a51e6893e use self-hosted runner for testsuite Serge Hallyn 2023-01-29 20:13:52 -0600
  • 416707b087 Use the noreturn attribute, rather than comments Alejandro Colomar 2023-02-07 19:50:36 +0100
  • b34387745a lib/defines.h: Add NORETURN attribute macro Alejandro Colomar 2023-02-07 19:39:36 +0100
  • e762ab8b54 Assume getutent(3) exists (remove dead code) Alejandro Colomar 2023-02-07 18:37:23 +0100
  • f301a4ca19 Handle reallocf(3) errors Alejandro Colomar 2023-02-02 12:31:54 +0100
  • 0ec157d579 Fix memory leaks by replacing realloc(3) with reallocf(3) Alejandro Colomar 2023-02-02 00:59:55 +0100
  • 82480995b4 Remove unused function: gr_append_member() Alejandro Colomar 2023-02-03 15:27:40 +0100
  • 1058872a0b Improve TTYGROUP description in login.defs manpage Serge Hallyn 2023-02-02 12:27:23 -0600
  • 1f6f1669cf Remove superfluous casts to 'void*' Alejandro Colomar 2023-02-01 13:50:48 +0100
  • 62172f6fb5 Call NULL by its name Alejandro Colomar 2023-02-01 02:50:14 +0100
  • 1482224c54 Use freezero(3) where suitable Alejandro Colomar 2023-02-01 20:29:29 +0100
  • 8e0ad48c21 Prevent out of boundary access Samanta Navarro 2023-01-30 11:54:49 +0000
  • ffc480c2e9 Explicitly override only newlines Samanta Navarro 2023-01-30 11:53:47 +0000
  • 37ae232080 Correctly handle illegal system file in tz Samanta Navarro 2023-01-27 11:57:51 +0000
  • 03bbe6c418 leading_zerosul(): Fix bug Alejandro Colomar 2023-01-31 16:47:40 +0100
  • 2a61122b5e Unoptimize the higher part of the domain of csrand_uniform() Alejandro Colomar 2023-01-30 13:13:36 +0100
  • 0712b236c3 Add bit manipulation functions Alejandro Colomar 2023-01-30 12:43:34 +0100
  • 848f53c1d3 Revert "Add bit manipulation functions" Alejandro Colomar 2023-01-19 04:23:44 +0100
  • 1a0e13f94e Optimize csrand_uniform() Alejandro Colomar 2023-01-18 13:26:47 +0100
  • 217b054cf5 Use WIDTHOF() instead of its expansion Alejandro Colomar 2023-01-18 12:40:01 +0100
  • 3f90eff494 Add WIDTHOF() to get the width in bits Alejandro Colomar 2023-01-18 12:38:18 +0100
  • 1db190cb66 Rewrite csrand_interval() as a wrapper around csrand_uniform() Alejandro Colomar 2022-12-30 19:46:09 +0100
  • 31375d48ca Add csrand_uniform() Alejandro Colomar 2022-12-30 19:46:09 +0100
  • 4a56f2baab Add bit manipulation functions Alejandro Colomar 2022-12-30 23:00:14 +0100
  • be1f4f7972 Move csrand() to a new file csrand.c Alejandro Colomar 2022-12-30 19:46:09 +0100
  • 986ef4e69c Use naming consistent with other common functions Alejandro Colomar 2022-12-30 19:42:17 +0100
  • 6d2337d9e8 Fix types of the csrand_interval() API Alejandro Colomar 2022-12-30 18:50:21 +0100
  • 8f441c9f7a Use a more precise name for a CSPRNG API with an interval Alejandro Colomar 2022-12-30 18:46:22 +0100
  • a27d5c51f1 Supporting vendor given -shells- configuration file Stefan Schubert 2022-11-28 17:18:09 +0100
  • b2d202cb5d libmisc: fix grammar Samanta Navarro 2022-12-30 11:51:42 +0000
  • b312bc0b4d Fix typos Samanta Navarro 2022-12-30 11:51:29 +0000
  • 194014678e Declare constant data structure const Christian Göttsche 2023-01-24 16:50:49 +0100
  • 89be7c0465 Provide strlcpy declaration Christian Göttsche 2023-01-24 16:31:23 +0100
  • c99d8d0a08 Avoid comparisons of different signs Christian Göttsche 2023-01-24 16:05:20 +0100
  • 43508ac476 Drop redundant declaration Christian Göttsche 2023-01-24 15:59:47 +0100
  • 46d3058341 copydir: fix impl usage Christian Göttsche 2023-01-24 15:53:42 +0100
  • e0d79ee032 Modernize manual memzero implementation Christian Göttsche 2023-01-24 15:44:35 +0100
  • 90ead3cfb8 Replace flawed memset_s usage Christian Göttsche 2023-01-24 15:39:41 +0100
  • b2bed465e8 Use getnameinfo(3) instead of our own equivalent Alejandro Colomar 2023-01-19 19:33:53 +0100
  • ac8b81c2b7 Prefer getrandom(3)/getentropy(3) over arc4random(3bsd) Alejandro Colomar 2022-12-30 12:48:55 +0100
  • 39ecca84d4 workflow: update checkout acton v2 to v3 Serge Hallyn 2023-01-12 18:39:18 -0600
  • 670cae8348 shadow: Fix can not print full login timeout message SoumyaWind 2022-12-27 17:40:17 +0530
  • abeb5f3794 fix typo lilinjie 2023-01-12 13:42:13 +0800
  • 1d936c968a Warn if failed to read existing /etc/nsswitch.conf Christian Göttsche 2023-01-02 16:11:58 +0100
  • 609c641323 Call inet_sockaddr2str() instead of inet_ntop(3) Alejandro Colomar 2022-12-22 15:48:40 +0100
  • bb3a89577c Add inet_sockaddr2str() to wrap inet_ntop(3) Alejandro Colomar 2022-12-22 15:26:01 +0100
  • eec5f9fccc Replace gethostbyname(3) by getaddrinfo(3) Alejandro Colomar 2022-12-22 14:03:05 +0100
  • 65470e5c7d changing lock mechanism ed neville 2022-12-06 19:21:55 +0000
  • bc18c184e5 chfn: new_fields: fix wrong fields printed Serge Hallyn 2022-12-22 17:54:51 -0600
  • eb164165f6 Add NITEMS(arr) to get the number of elements of an array Alejandro Colomar 2022-12-22 13:51:20 +0100
  • 220b352b70 Use strlcpy(3) instead of its pattern Alejandro Colomar 2022-12-16 04:13:53 +0100
  • a48d77bdef strtoday.c: remove unused defines.h inclusion Iker Pedrosa 2022-12-22 16:29:00 +0100
  • bb0c89d944 strtoday.c: remove USE_GETDATE as it was always used Iker Pedrosa 2022-12-22 16:26:21 +0100
  • e4441489bc strtoday.c: remove POSIX 1995 conditional dependency Iker Pedrosa 2022-12-22 16:14:24 +0100
  • 647d46507d Assume struct tm is defined in <time.h> Alejandro Colomar 2022-12-22 11:53:44 +0100
  • d96bb2868d Assume struct stat has st_atim and st_mtim fields Alejandro Colomar 2022-12-22 11:42:44 +0100
  • 5d7a3b80e9 Remove USE_SYSLOG preprocessor conditional, which was always defined Alejandro Colomar 2022-12-21 17:53:16 +0100
  • 350b1e8683 Remove dead code Alejandro Colomar 2022-12-21 17:43:31 +0100
  • e2df287aad Don't redefine errno(3) Alejandro Colomar 2022-12-21 19:02:25 +0100
  • ed69feaaff Fix typos in length calculations Alejandro Colomar 2022-12-16 01:08:12 +0100
  • 06c30450ce Use 'uintmax_t' to print 'gid_t' Alejandro Colomar 2022-12-16 01:06:09 +0100
  • 587ce83e3f Fix off-by-one mistakes Alejandro Colomar 2022-12-16 00:52:27 +0100
  • b990b167d4 Cosmetic fixes Alejandro Colomar 2022-12-21 18:44:06 +0100
  • 3be7b9d75a Remove traces of utmpx Alejandro Colomar 2022-12-21 18:36:57 +0100
  • 170b76cdd1 Disable utmpx permanently Alejandro Colomar 2022-12-21 18:33:40 +0100
  • 2da7607ea6 Assume <utmpx.h> always exists Alejandro Colomar 2022-12-21 17:59:30 +0100
  • 5fae37271e Remove pwdauth.c Alejandro Colomar 2022-12-20 15:10:49 +0100
  • 74c17c7167 Add support for skeleton files from /usr/etc/skel Michael Vetter 2022-11-09 14:41:31 +0100
  • 37412f505e Fix useradd audit event logging of ID field Michael Vetter 2022-12-15 11:52:58 +0100
  • 6b6e005ce1 Remove comments that survived the Helicoprion Alejandro Colomar 2022-12-13 22:30:05 +0100
  • 428a2078b6 Ping? :) Alejandro Colomar 2022-12-13 22:17:51 +0100
  • 54847a76da Remove preprocessor conditionals that are always true Alejandro Colomar 2022-12-13 22:12:51 +0100
  • f2ae6a42a4 Remove code conditional on USE_TERMIO Alejandro Colomar 2022-12-13 22:10:16 +0100