Whamcloud - gitweb
libext2fs: use a safe_getenv() function everywhere
authorTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2024 14:19:08 +0000 (10:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2024 14:19:08 +0000 (10:19 -0400)
commiteefbea0da8109c049ceb289d8cf160d5840cf9bd
tree61b758f4ac7202018590283c502238aa36d28447
parent7f748825697554a7b4355b6c938b4b5f4ded43e1
libext2fs: use a safe_getenv() function everywhere

Hoist safe_getenv() from test_io.c and unix_io.c to a globally
exported ext2fs_safe_getenv() and use it instead of getenv() in
libext2fs.  This provides a bit more safety if e2fsprogs programs are
used in setuid contexts.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian/libext2fs2t64.symbols
lib/ext2fs/Makefile.in
lib/ext2fs/ext2fs.h
lib/ext2fs/gen_bitmap64.c
lib/ext2fs/initialize.c
lib/ext2fs/ismounted.c
lib/ext2fs/openfs.c
lib/ext2fs/progress.c
lib/ext2fs/test_io.c
lib/ext2fs/undo_io.c
lib/ext2fs/unix_io.c