Bug 45794

Summary: shadow: ошибка сборки с glibc 2.37
Product: Sisyphus Reporter: Alexey Sheplyakov <asheplyakov>
Component: shadowAssignee: Mikhail Efremov <sem>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: minor    
Priority: P5 CC: asheplyakov, iv, ldv, nir, sem, sin
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 45802    
Attachments:
Description Flags
патч для исправления ошибки none

Description Alexey Sheplyakov 2023-04-09 19:06:08 MSK
cc -DHAVE_CONFIG_H -I. -I..  -I../lib -I../libmisc -DLOCALEDIR=\"/usr/share/locale\"   -pipe -frecord-gcc-switches -Wall -g -O2 -Werror -Wno-error=address -Wno-error=cpp -DEXTRA_CHECK_HOME_DIR -c -o logoutd.o logoutd.c
logoutd.c: In function 'main':
logoutd.c:248:25: error: 'strcat' argument 2 declared attribute 'nonstring' [-Werror=stringop-overread]
  248 |                         strcat (tty_name, ut->ut_line);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/utmp.h:29,
                 from ../lib/prototypes.h:52,
                 from logoutd.c:42:
/usr/include/bits/utmp.h:62:8: note: argument 'ut_line' declared here
   62 |   char ut_line[UT_LINESIZE]
      |        ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:943: logoutd.o] Error 1
Comment 1 Alexey Sheplyakov 2023-04-09 19:16:10 MSK
Created attachment 12915 [details]
патч для исправления ошибки
Comment 2 Mikhail Efremov 2023-04-10 09:00:23 MSK
В Сизифе на днях будет новый shadow, там уже исправлено.
Comment 3 Repository Robot 2023-04-26 22:05:24 MSK
shadow-1:4.13-alt3 -> sisyphus:

 Tue Apr 25 2023 Mikhail Efremov <sem@altlinux> 1:4.13-alt3
 - Keep old login.defs when UID_MIN/GID_MIN changed.
 - Increase default UID_MIN/GID_MIN to 1000.
 - remove_tree: Allow a symlink as root if it shouldn't be removed.
 Tue Apr 11 2023 Mikhail Efremov <sem@altlinux> 1:4.13-alt2
 - Added libsubid subpackage.
 - Dropped disabled libshadow* subpackages.
 Mon Apr 10 2023 Mikhail Efremov <sem@altlinux> 1:4.13-alt1
 - Fixed build without TCB.
 - spec: simplified the bootstrap sequence (by Alexey Sheplyakov).
 - Fixed build without PAM.
 - fixed build without TCB and/or PAM (by Alexey Sheplyakov).
 - useradd: Fixed Russian translation.
 - Use /bin/run-parts if able.
 - utils: Packaged user{add,del}-{pre,post}.d directories.
 - useradd: Set default group to 100 (users).
 - login.defs: Added HOME_MODE variable.
 - login.defs: Added HMAC_CRYPTO_ALGO variable.
 - login.defs: Added GRANT_AUX_GROUP_SUBIDS variable.
 - login.defs: Added NONEXISTENT variable.
 - Explicitly enabled btrfs support.
 - Use 'set_verify_elf_method strict'.
 - Enabled LFS on 32-bit systems.
 - lib/commonio: Fixed fprintf() format.
 - tcb: Added remove_tcbdir() function.
 - shadow: Don't use relaxed usernames.
 - newusers,pwck,useradd,usermod: Removed --badname option.
 - Ensured that prefix is not '/'.
 - userdel: Fixed mailbox removing.
 - Added prefix support for TCB.
 - Don't install libsubid static library.
 - usermod: Don't call gr_free() with const variable.
 - useradd: Fixed "discards 'const' qualifiers" warning.
 - Updated 'alt-progname' patch.
 - tcbfuncs.c: Fixed and updated selinux support.
 - Updated 'copy_dir perms' patch.
 - src/Makefile.am: Fixed noinst_PROGRAMS.
 - Fixed license.
 - Updated url.
 - Updated to 4.13 (closes: #45794).