aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-04-10FUSE_FILL_DIR_DEFAULTS is not defined with older Fuse headers.Martin Pärtel-1/+1
2025-04-10readdir: do full stat when FUSE_READDIR_PLUS was requestedJan Palus-22/+37
Fixes #159
2024-06-05Warn that lock forwarding does not forward flock() on FreeBSD.Martin Pärtel-0/+7
2024-04-06Added ./configure option --disable-macos-fs-linkMartin Pärtel-2/+2
For #140
2023-11-27Merge pull request #150 from hartwork/macos-ciMartin Pärtel-36/+40
Cover macOS in CI + make CI use the right compiler + fix more compile warnings
2023-11-27Fix five typos pointed out by codespellSebastian Pipping-4/+4
codespell report was: > # git ls-files | xargs codespell > src/bindfs.1:136: mimicing ==> mimicking > src/bindfs.1:237: excecute ==> execute > src/bindfs.1:445: efficent ==> efficient > src/bindfs.1:526: accessable ==> accessible > tests/test_bindfs.rb:976: hax ==> hex # not agreeing on a fix here
2023-11-20src/Makefile.am: Add missing DESTDIR for macOSSebastian Pipping-1/+1
2023-11-20bindfs.c: Fix bindfs_init signature for all but FUSE 3Sebastian Pipping-3/+3
Related commit: https://github.com/libfuse/libfuse/commit/6c66dac9f229d0035f83ae63d9033e4f51d9c5c8
2023-11-20src|tests: Address warning -Wstrict-prototypesSebastian Pipping-33/+33
Symptom with Clang 15: > In file included from userinfo.c:20: > ./userinfo.h:38:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] > void invalidate_user_cache(); /* safe to call from signal handler */ > ^ > void > [many more]
2023-11-20bindfs.c: Address warning -Wunused-functionSebastian Pipping-0/+4
Symptom with GCC 13: > bindfs.c:1470:12: error: 'bindfs_flock' defined but not used [-Werror=unused-function] > static int bindfs_flock(const char *path, struct fuse_file_info *fi, int op) > ^~~~~~~~~~~~ > bindfs.c:1458:12: error: 'bindfs_lock' defined but not used [-Werror=unused-function] > static int bindfs_lock(const char *path, struct fuse_file_info *fi, int cmd, > ^~~~~~~~~~~
2023-11-20bindfs.c: Address warning -Wsign-compareSebastian Pipping-1/+1
Symptom with Apple GCC: > bindfs.c:1677:26: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'ssize_t' (aka 'long') [-Werror,-Wsign-compare] > } while (len < res); > ~~~ ^ ~~~
2023-11-14permchain.c: Address warning -Wunused-parameterSebastian Pipping-1/+11
The fix is a near 1:1 copy of what add_chmod_rule_to_permchain already does about the same problem. Symptom was: > src/permchain.c: In function ‘add_octal_rule_to_permchain’: > src/permchain.c:151:71: error: unused parameter ‘end’ [-Werror=unused-parameter] > 151 | static int add_octal_rule_to_permchain(const char *start, const char *end, > |
2023-11-14permchain.c: Handle malloc failure in add_chmod_rule_to_permchainSebastian Pipping-0/+2
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); > | ^~~~~~~~~~~~~~~~~~~~~~
2023-11-14bindfs.c: Address warning -Wunused-parameterSebastian Pipping-0/+29
2023-11-14bindfs.c|usermap.c: Address warning -Wsign-compareSebastian Pipping-10/+10
For example: > src/bindfs.c: In function ‘getattr_common’: > src/bindfs.c:449:26: error: comparison of integer expressions of different signedness: ‘uid_t’ {aka ‘unsigned int’} and ‘int’ [-Werror=sign-compare] > 449 | if (settings.new_uid != -1) > | ^~ >
2023-11-10Avoid undefined behaviour if uid_t/gid_t is signed.Martin Pärtel-32/+42
This drops support for CentOS 7 because its GCC is too old to support `__builtin_add_overflow`, and its EOL'ing in about half a year anyway. Fixes #143
2023-11-09Support negative --{uid,gid}-offsetMartin Pärtel-22/+31
Fixes #142
2023-09-22Allow mount to use bindfs with configuration via /etc/fstab.Ilya Kulakov-0/+11
2023-07-15Use MacOS socket file code on FreeBSD too.Martin Pärtel-3/+7
2023-07-15Merge pull request #133 from slonopotamus/unix-sockets-on-macosMartin Pärtel-2/+30
resolves #132 add support for AF_UNIX bind on macOS
2023-07-15Support for fuse-tMartin Pärtel-2/+2
2023-07-14resolves #132 add support for AF_UNIX bind on macOSMarat Radchenko-2/+30
2023-06-03Added statfs_x implementation for MacOS.Martin Pärtel-0/+25
Fixes #130
2023-04-23man page: mentioned fuse(8)Martin Pärtel-3/+4
2023-04-12Debug output cleanupMartin Pärtel-2/+3
2023-02-07Fixed FD leak when using --block-devices-as-files (#125)Martin Pärtel-4/+5
2022-10-17Fixed --resolve-symlinks when mountpoint name starts with source dir name.Martin Pärtel-2/+45
Fixes #122
2022-10-07Basic OpenBSD support. The test suite does not pass yet.Martin Pärtel-0/+13
For #121
2022-07-12Reverted change in 1.16.0 that made direct_io the default.Martin Pärtel-5/+15
Fixes #117
2022-06-24Fixed build on FreeBSD (and probably MacOS).Martin Pärtel-1/+7
Fixed #ifdefs areound direct_io.
2022-06-24Line up another option in --helpSergei Shilovsky-1/+1
2022-06-23Like up list of options in --helpSergei Shilovsky-4/+4
Co-authored-by: Martin Pärtel <martin.partel@gmail.com>
2022-06-23Fix -o analogue for --map-*-revSergei Shilovsky-2/+2
Co-authored-by: Martin Pärtel <martin.partel@gmail.com>
2022-06-22clarify man for --map-{passwd,group}{,-rev}Sergei Shilovsky-8/+8
2022-06-22--map-passwd-rev and --map-group-revSergei Shilovsky-3/+53
2022-06-22fix typo in manSergei Shilovsky-1/+1
2022-04-03Made direct-io the default after all, and added --no-direct-io.Martin Pärtel-11/+12
#110
2022-04-03Added --direct-ioMartin Pärtel-2/+18
Issue #110, thanks @DUOLabs333 for the initial patch.
2021-05-04Cleanups.Martin Pärtel-67/+0
2021-02-15Fixed permchain.c on older compilers. Enabled -Wpedantic.Martin Pärtel-12/+12
2021-02-14Got rid of alloca()Martin Pärtel-2/+2
2021-02-14(cleanups)Martin Pärtel-2/+2
2021-02-13Include alloca.h to fix build on MacOSMartin Pärtel-0/+1
2021-02-13Refactored and unit-tested filter_special_opts. Shaved a bunch of yaks on ↵Martin Pärtel-136/+216
the way.
2021-02-13filter_special_opts: allocate space for null terminator.Martin Pärtel-7/+7
2021-02-13filter_special_opts: minor cleanupsMartin Pärtel-47/+46
2021-01-30Disabled caches in bindfs_init in FUSE 3 mode + minor cleanups.Martin Pärtel-6/+14
2021-01-30Disabled test "preserves readdir inode numbers" in FUSE 3 mode for now.Martin Pärtel-1/+3