1
0
mirror of https://github.com/pete4abw/libtrash.git synced 2025-09-19 04:01:32 +03:00
Commit Graph

31 Commits

Author SHA1 Message Date
Peter Hyman
5c0725e218 Updates to DEBUG output and libtrash.conf.5 man page. 2024-03-25 17:02:08 -05:00
Peter Hyman
f4d280e6ef Merge pull request #6 from lemzwerg/strash
`strash`: Bug fixes and minor improvements
2024-03-14 07:21:39 -05:00
Werner Lemberg
3117c94f99 strash: Bump version to 0.91 2024-03-12 19:58:05 +01:00
Werner Lemberg
a0e2a09e94 strash: New option --null to support unusual characters in file names
If option `--null` (or `-0`) is set, `strash` uses zero-terminated strings
so that file names that contain newlines, for example, are properly handled.
The previous implementation silently aborted if a single such file name was
present.

This commit only got limited testing.
2024-03-12 19:58:00 +01:00
Werner Lemberg
c3a4c0b47e strash: Make it work with newer find versions
The behaviour of `@` in `%T@` and friends has changed: it can now return a
fractional part (and usually does), which is undesired for this script since
it uses the shell's `test -eq` functionality for comparison, which expects
integers.

Given that 'libtrash' is for GNU/Linux, we can expect that recent `strftime`
implementations are available, providing the `s` modifier to return integer
values.
2024-03-12 19:57:25 +01:00
Werner Lemberg
77fd77fe0b strash: Use new GNU quoting conventions
Also update bug report address.
2024-03-11 22:18:37 +01:00
Peter Hyman
6a7d8d48ee Fixups to open-funs.c.
In function return_function(), the open functions return a file
descriptor. The casts used (FILE*) (intptr_t) were removed.

Calls to the return_function_error() function were inconsistent. It
should have only been passed a function descriptor, not an errno. It was
handled inconsistently. The errno variable is now set after the call
consistently.
2024-02-08 08:19:13 -06:00
Peter Hyman
cc9ae38d7e Sync changes from nomacros branch for v3.9. v3.9 2024-01-31 06:31:46 -06:00
Peter Hyman
e19db03638 Minor update to libtrash.conf.5 to describe it in NAME section. 2024-01-30 05:44:56 -06:00
Peter Hyman
041207bcfa Fix groff error in man/libtrash.conf.5 2024-01-24 09:29:10 -06:00
Peter Hyman
ad7d1544ba Update Makefile.am to remove BUILD reference. File was removed. 2024-01-24 09:10:45 -06:00
Peter Hyman
62f161ae00 Update Makefile.am to install TLDR.md 2024-01-21 07:49:44 -06:00
Peter Hyman
f05b2ef4bb Shorten README.md and split off details to TLDR.md 2024-01-21 07:49:06 -06:00
Peter Hyman
f6f3a2d26e Add install-hook and uninstall-hook to Makefile.am.
These changes are technically not required, but keep things
clean by not installing libtrash.la, and then removing *so files
manually because libtrash.la is not there.
2024-01-21 05:53:20 -06:00
Peter Hyman
62e2dc6347 Update Documentation, man pages, AUTHORS file. 2024-01-11 06:42:48 -06:00
Peter Hyman
f88d478613 Version 3.8. Adds gcc 14 compatibility. Fixups to some warnings. Adds
manpage
v3.8
2024-01-08 12:33:29 -06:00
Peter Hyman
e028990fc3 Correct make distclean fail. Put libtrash.conf in , not in /libtrash. Use configure --sysconfdir= to specify. 2021-06-14 09:24:51 -05:00
Peter Hyman
5c984762e7 Update README.md, ChangeLog, configure.ac for Version 3.7 v3.7 2021-02-24 07:55:40 -06:00
Peter Hyman
e4d1fc167f Fixups to autogen.sh, configure.ac, and src/Makefile.am for correct library version variable 2021-02-19 08:15:48 -06:00
Peter Hyman
36a29ec6f5 Add micro version, bug report emails, homepage, and use -version-number in Makefile.am for proper library naming. 2021-02-18 11:00:44 -06:00
Peter Hyman
93229859be README update. Minor updates to BUILD, INSTALL 2021-02-18 10:56:07 -06:00
Peter Hyman
a9ef9802bf Code cleanup. Rearrange includes for readability 2021-02-15 07:26:29 -06:00
Peter Hyman
1d039eb249 Add __USE_GNU define to helpers.c 2021-02-15 07:25:25 -06:00
Peter Hyman
d9928d2193 Updates to configure.ac and Makefile.am and add define for AT_FUNCTIONS 2021-02-15 07:24:17 -06:00
Peter Hyman
60ca5f5c66 autotools. Trim files not used. Pretty Format on sources. Remove scripts and integrate to configure.ac 2021-02-10 11:56:57 -06:00
Peter Hyman
3e9d3302dd Merge M. Arriaga final v 3.5 v3.5 2020-07-03 05:39:29 -05:00
Peter Hyman
dc40bec150 Update helper functions to set MAX_FILE_SIZE 2019-12-02 13:14:01 -06:00
Peter Hyman
bd6d05620f Removed TODO action for checking file size. 2019-10-28 05:40:16 -05:00
Peter Hyman
b31ac8b870 Move file size check after all other checks done for file remove. 2019-10-27 11:43:05 -05:00
Peter Hyman
e105a5558a Add filesize check and config option 2019-10-26 08:00:01 -05:00
Peter Hyman
07b0e8cb7c initial commit of libtrash 3.4 2019-10-24 09:12:36 -05:00