mbox series

[v2,0/3] Remove double or trailing slashes in TMPDIR in C API

Message ID 20240325115034.643892-1-pvorel@suse.cz
Headers show
Series Remove double or trailing slashes in TMPDIR in C API | expand

Message

Petr Vorel March 25, 2024, 11:50 a.m. UTC
Changes v1->v2:
* Change algorithm in lib/tst_tmpdir.c (different than the suggested one
  by Cyril in v1).
* Remove warnings about wrong TMPDIR.

Petr Vorel (3):
  lib/tst_tmpdir: Normalize user defined TMPDIR
  lib: Add test for tst_tmpdir
  lib: Improve doc related to $TMPDIR default value

 include/tst_defaults.h        |  3 ++-
 lib/newlib_tests/runtest.sh   |  2 +-
 lib/newlib_tests/tst_tmpdir.c | 49 +++++++++++++++++++++++++++++++++++
 lib/tst_tmpdir.c              | 20 ++++++++++++--
 testcases/lib/tst_test.sh     |  2 ++
 5 files changed, 72 insertions(+), 4 deletions(-)
 create mode 100644 lib/newlib_tests/tst_tmpdir.c