<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/tests/reverse, branch freebsd-support</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=freebsd-support</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=freebsd-support'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2026-03-08T20:35:59+00:00</updated>
<entry>
<title>Added basic support for FreeBSD.</title>
<updated>2026-03-08T20:35:59+00:00</updated>
<author>
<name>Ankush Patel</name>
</author>
<published>2026-02-05T01:42:40+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=4fa21dcb57c5a0b7761bfec606ffd0e94c293ce8'/>
<id>urn:sha1:4fa21dcb57c5a0b7761bfec606ffd0e94c293ce8</id>
<content type='text'>
Freebsd-support: Change bash shebang to use /usr/bin/env

Freebsd-support: Fix go vet "undefined" fixes when running make ci

freebsd: stub xattr functions

/proc/PID/fd does not exist on freebsd.

freebsd-support: modify FchmodatNofollow for FreeBSD

FreeBSD supports the Fchmodat system call, with the AT_SYMLINK_NOFOLLOW
flag. FchmodatNofollow has been modified to use this system call and
flag.

freebsd-support: PR changes and fixes

* Functions in fusefrontend_reverse/node_xattr_freebsd.go have been
  stubbed for now.

* asuser_freebsd.go updated to only run f() when context is nil;
  otherwise log a warning and return an error.

* emulate.go build flags updated, and FreeBSD specific version added.

* sys_freebsd.go bug in Renameat2 with RENAME_EXCHANGE flag fixed.
  FreeBSD does not support atomic file swapping, so this flag now
  returns an error.

* unix2syscall and atime is identical between FreeBSD and Darwin,
  updated filenames so Go will build the file for FreeBSD and Mac OS.

freebsd-support: Addressed more PR comments and fixed build tags
</content>
</entry>
<entry>
<title>tests/reverse: add TestXattrGetMountpoint</title>
<updated>2026-02-08T20:37:31+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2026-02-08T20:37:09+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=a5fd293b3981fad0cf2cc0f918e8c864fad2c961'/>
<id>urn:sha1:a5fd293b3981fad0cf2cc0f918e8c864fad2c961</id>
<content type='text'>
Fails right now:

gocryptfs/tests/reverse$ go test -run TestXattrGetMountpoint
--- FAIL: TestXattrGetMountpoint (0.00s)
    xattr_test.go:78: LGet: xattr.get /var/tmp/gocryptfs-test-parent-1026/3269496664/x.3903415542.mnt user.foo453465324: invalid argument
    xattr_test.go:82: LList: err=&lt;nil&gt;
FAIL
testcases[0] = struct { plaintextnames bool; deterministic_names bool }{plaintextnames:false, deterministic_names:false} failed
exit status 1
FAIL	github.com/rfjakob/gocryptfs/v2/tests/reverse	0.091s
</content>
</entry>
<entry>
<title>reverse: fix TestXattrList failure</title>
<updated>2025-11-22T20:51:27+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-11-22T20:44:51+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=75247e14612d2e71311aeeb7060ea704c96c3154'/>
<id>urn:sha1:75247e14612d2e71311aeeb7060ea704c96c3154</id>
<content type='text'>
On my Fedora I used to get this failure:

	--- FAIL: TestXattrList (0.00s)
	    xattr_test.go:52: wrong number of names, want=20 have=21
	    xattr_test.go:58: mismatch on attr "security.selinux": valA = "", valC = "xxxxxxxxyyyyyyyyyyyyyyyzzzzzzzzzzzzz"

First step is to print the actual value using xattr.LGet.
This improves the error message to this:

	--- FAIL: TestXattrList (0.00s)
	    xattr_test.go:53: wrong number of names, want=20 have=21
	    xattr_test.go:59: mismatch on attr "security.selinux": valA = "", valC = "system_u:object_r:fusefs_t:s0\x00"

2nd step is to ignore "security." attribs as we have no control
over them.
</content>
</entry>
<entry>
<title>Xattrs support in reverse mode</title>
<updated>2025-11-22T20:24:20+00:00</updated>
<author>
<name>Aleksey Vasenev</name>
</author>
<published>2024-11-17T20:14:36+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=ed1c5e4a9f5ce1921f3ec03b32e591ce828ec5b9'/>
<id>urn:sha1:ed1c5e4a9f5ce1921f3ec03b32e591ce828ec5b9</id>
<content type='text'>
Fixes https://github.com/rfjakob/gocryptfs/issues/827
</content>
</entry>
<entry>
<title>Fix all staticcheck errors in gocryptfs codebase</title>
<updated>2025-07-08T17:54:14+00:00</updated>
<author>
<name>copilot-swe-agent[bot]</name>
</author>
<published>2025-07-07T18:18:12+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=386232f39ede046d6453a0990ad40f2d86a26f53'/>
<id>urn:sha1:386232f39ede046d6453a0990ad40f2d86a26f53</id>
<content type='text'>
Co-authored-by: rfjakob &lt;286847+rfjakob@users.noreply.github.com&gt;

Add staticcheck to test.bash for continuous static analysis

Co-authored-by: rfjakob &lt;286847+rfjakob@users.noreply.github.com&gt;

Fix nil pointer dereference in timesToTimespec function

The previous fix for deprecated fuse.UtimeToTimespec caused a panic
because unix.TimeToTimespec doesn't handle nil pointers. This fix
properly handles nil pointers by using unix.UTIME_OMIT while still
using the non-deprecated unix.TimeToTimespec function.

Co-authored-by: rfjakob &lt;286847+rfjakob@users.noreply.github.com&gt;

Undo SA6002 changes and add staticcheck ignore directive instead

Co-authored-by: rfjakob &lt;286847+rfjakob@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>Fix a bunch of staticcheck errors</title>
<updated>2025-07-07T17:59:35+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-07-07T17:54:48+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8f5df19b353e02ffba842fd1b15ccf93da7ee3b4'/>
<id>urn:sha1:8f5df19b353e02ffba842fd1b15ccf93da7ee3b4</id>
<content type='text'>
Tool-assisted.
</content>
</entry>
<entry>
<title>tests: reverse: delete static directory tree</title>
<updated>2025-06-20T18:51:12+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-06-20T18:51:12+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=c82ca93f29ea8fe7990558917e20ae5afcd2fab0'/>
<id>urn:sha1:c82ca93f29ea8fe7990558917e20ae5afcd2fab0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: reverse: generate directory tree for exlucude tests dynamically</title>
<updated>2025-06-20T18:50:26+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-06-20T18:50:26+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=10c7dc51d8bbe5cb8beb3e19f507c6c99eee09d7'/>
<id>urn:sha1:10c7dc51d8bbe5cb8beb3e19f507c6c99eee09d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>testing: reverse: add some verbose logging</title>
<updated>2025-06-20T18:48:49+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-06-20T18:48:49+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=e6e27c1db0856d162c557e17e0eadff254d84fb8'/>
<id>urn:sha1:e6e27c1db0856d162c557e17e0eadff254d84fb8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>testing: reverse: factor out newReverseFS</title>
<updated>2025-06-19T20:03:06+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-06-19T11:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=66bfd4d9fef5df871348964526b64b700ee6a19c'/>
<id>urn:sha1:66bfd4d9fef5df871348964526b64b700ee6a19c</id>
<content type='text'>
Will be used soon in a new gitignore test.

Relates-to: https://github.com/rfjakob/gocryptfs/issues/927
</content>
</entry>
</feed>
