Skip to content

Releases: troglobit/libite

Libite (-lite) v2.2.0

16 Mar 16:50
Compare
Choose a tag to compare

Changes

  • Add support for systemf(), formatted string system() replacement
  • Add support for fmkpath(), formatted string mkpath()
  • Add support for fopenf(), formatted string fopen() replacement

Fixes

  • Fix possible memory leak in rsync(), found by Coverity Scan
  • Check return value of fstat() to prevent bogus destination file times when using copyfile(), found by Coverity Scan

Libite (-lite) v2.1.2

22 Feb 14:09
Compare
Choose a tag to compare

Fixes

  • Fix Debian package upgrade from libite -> libite5

Libite (-lite) v2.1.1

22 Feb 13:01
Compare
Choose a tag to compare

Changes

  • Add test/example for printhdr()
  • Update copyright years

Fixes

  • chomp: Check for beginning of string while removing \n's

Libite (-lite) v2.1.0

26 Aug 20:02
Compare
Choose a tag to compare

Changes

  • Add support for strmatch() and strnmatch()
  • Add support for yorn(), safe yes-or-no prompt
  • Add support for telnet expect/session APIs
  • Add modified printhdr() which takes ANSI attribute

Fixes

  • Fix pidfile_signal(): always return result of kill(), or the result of remove() if we successfully sent SIGKILL
  • Fix strtonum(): POSIX strtoll() returns EINVAL, check that
  • Fix #13, support C++ extern "C" {} for header files

Libite (-lite) v2.0.2

10 May 17:15
Compare
Choose a tag to compare

Fixes

  • Fix issue #12, missing includes in strlite.h for standalone use
  • FTBFS strtonum.c on older systems w/o LLONG_MAX and LLONG_MIN

Libite (-lite) v2.0.1

22 Dec 11:15
Compare
Choose a tag to compare

Changes

  • Add missing initscr() declaration, regression in v2.0.0
  • Add #ifdef guards around min() and max() macros
  • Add const to char * args in multiple API:s:
    • fexist()
    • fgetint()
    • fisslashdir()
    • copyfile()
    • movefile()
    • ifconfig()
    • lfopen()
    • lfgetkey()
    • lfgetint()

Fixes

  • Fix #9, uncommon location of which command in unit test
  • Fix #10, supply unit test with a default $PATH
  • Fix #11, touch() command cannot handle relative paths when updating mtime of an existing file

Libite (-lite) v2.0.0

22 Nov 13:34
Compare
Choose a tag to compare

Changes

  • Remove tree(), moved to toolbox.git instead
  • Remove fmode(), please use stat() instead, it's safer
  • Add support for keeping mtime in copy() and rsync()
  • Move source files to an src/ sub-directory
  • Move initscr() from conio.h to conio.c
  • Update docs, recommend mkpath() over makepath()
  • Bump ABI version, major changes to library

Fixes

  • Fix #7, inconsistent return value in mkpath() and makepath()
  • Fix #8, constify mkpath() and makepath()

Libite (-lite) v1.9.3

24 Oct 14:00
Compare
Choose a tag to compare

Changes

  • initscr(), use stdout, not stderr, like the rest of the conio.h macros. Also, stderr may be redirected by user
  • tree(), update unit test, use standard directries

Fixes

  • initscr(), verify that both stdin and stdout are real TTYs before messing up output or blocking on input for the user
  • tree(), increase internal buffer slightly, output may be truncated otherwise. Found by GCC 7.2

Libite (-lite) v1.9.2

09 Jul 13:54
Compare
Choose a tag to compare
  • Add initscr() function to query screen size
  • Convert printheader() to a static inline function

Libite (-lite) v1.9.1

03 Jul 11:26
Compare
Choose a tag to compare

Changes

  • Add missing whichp() predicate function to accompany which()
  • Allow which("ps aux"), which skips any arguments to command