aboutsummaryrefslogtreecommitdiffstats
path: root/src/misc.c
AgeCommit message (Collapse)AuthorLines
2023-11-14misc.c: Fix overflow detection zombie in function grow_memory_blockSebastian Pipping-4/+5
Started out with this warning: > src/misc.c: In function ‘grow_memory_block’: > src/misc.c:333:25: error: comparison of unsigned expression in ‘< 0’ is always false [-Werror=type-limits] > 333 | if (new_cap < 0) { // Overflow > | ^
2023-11-14misc.c: Address warning -Wsign-compareSebastian Pipping-1/+1
The symptom: > src/misc.c: In function ‘path_starts_with’: > src/misc.c:169:45: error: operand of ‘?:’ changes signedness from ‘long int’ to ‘long unsigned int’ due to unsignedness of other operand [-Werror=sign-compare] > 169 | size_t path_part_len = path_slash ? path_slash - path_part : path_len - (path_part - path); > | ^~~~~~~~~~~~~~~~~~~~~~
2022-10-17Fixed --resolve-symlinks when mountpoint name starts with source dir name.Martin Pärtel-0/+39
Fixes #122
2021-02-14(cleanups)Martin Pärtel-2/+2
2021-02-13Refactored and unit-tested filter_special_opts. Shaved a bunch of yaks on ↵Martin Pärtel-5/+102
the way.
2019-06-26Resolve symlinks in readdir() so correct attributes are returned.Martin Pärtel-4/+10
Fixes #76
2018-01-14Internal renames.Martin Pärtel-6/+6
2015-11-17Show the source dir in the first field on /etc/mtab.Martin Pärtel-0/+27
Fixes #15. Thanks @tyll!
2015-11-15Fix overflow in parse_byte_count when "long" is 32-bit.Martin Pärtel-2/+2
2014-06-30Implemented rate limiter.Martin Pärtel-1/+23
Fixes #12.
2014-05-10(removed trailing spaces)Martin Pärtel-2/+2
2012-09-14Implemented my_dirname and added unit tests for it.Martin Pärtel-0/+26
2012-07-04Cache user data for user_belongs_to_group().Martin Pärtel-1/+56
This considerably speeds up --mirror @group.
2011-07-08Initial commit to git.Martin Pärtel-0/+83