<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/internal/readpassword, branch v2.2.0-beta2</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.2.0-beta2</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.2.0-beta2'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2021-08-23T13:05:15+00:00</updated>
<entry>
<title>go mod: declare module version v2</title>
<updated>2021-08-23T13:05:15+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-08-23T13:05:15+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=69d88505fd7f4cb0d9e4f1918de296342fe05858'/>
<id>urn:sha1:69d88505fd7f4cb0d9e4f1918de296342fe05858</id>
<content type='text'>
Our git version is v2+ for some time now, but go.mod
still declared v1. Hopefully making both match makes
https://pkg.go.dev/github.com/rfjakob/gocryptfs/v2 work.

All the import paths have been fixed like this:

  find . -name \*.go | xargs sed -i s%github.com/rfjakob/gocryptfs/%github.com/rfjakob/gocryptfs/v2/%
</content>
</entry>
<entry>
<title>golangci-lint: fix issues found by "unused" and "deadcode"</title>
<updated>2021-08-19T06:34:49+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-08-19T06:31:53+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=be2bd4eec7de3836da56a3532ecbcf45a127ece2'/>
<id>urn:sha1:be2bd4eec7de3836da56a3532ecbcf45a127ece2</id>
<content type='text'>
Except xattrSupported, this is a false positive.

$ golangci-lint run --disable-all --enable unused --enable deadcode
gocryptfs-xray/xray_main.go:24:5: `GitVersionFuse` is unused (deadcode)
var GitVersionFuse = "[GitVersionFuse not set - please compile using ./build.bash]"
    ^
tests/symlink_race/main.go:47:6: `chmodLoop` is unused (deadcode)
func chmodLoop() {
     ^
internal/readpassword/extpass_test.go:11:5: `testPw` is unused (deadcode)
var testPw = []byte("test")
    ^
tests/reverse/xattr_test.go:13:6: func `xattrSupported` is unused (unused)
func xattrSupported(path string) bool {
     ^
internal/fusefrontend_reverse/rpath.go:20:22: func `(*RootNode).abs` is unused (unused)
func (rfs *RootNode) abs(relPath string, err error) (string, error) {
                     ^
tests/matrix/matrix_test.go:310:6: `sContains` is unused (deadcode)
func sContains(haystack []string, needle string) bool {
</content>
</entry>
<entry>
<title>main: accept multiple -passfile options</title>
<updated>2020-05-17T17:31:04+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-05-17T17:31:04+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=416080203b4dd79de857eaf7c7cc97d050e00a9f'/>
<id>urn:sha1:416080203b4dd79de857eaf7c7cc97d050e00a9f</id>
<content type='text'>
Each file will be read and then concatenated
for the effictive password. This can be used as a
kind of multi-factor authenticiton.

Fixes https://github.com/rfjakob/gocryptfs/issues/288
</content>
</entry>
<entry>
<title>remove Trezor support</title>
<updated>2019-12-28T18:50:49+00:00</updated>
<author>
<name>Pavol Rusnak</name>
</author>
<published>2019-12-27T21:27:57+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=1364b44ae356da31e24e5605fe73a307e9d6fb03'/>
<id>urn:sha1:1364b44ae356da31e24e5605fe73a307e9d6fb03</id>
<content type='text'>
</content>
</entry>
<entry>
<title>readpassword: delete CheckTrailingGarbage</title>
<updated>2019-04-08T18:18:45+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-04-08T18:18:45+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=fe06e9f45646893dc88ebe9e657e2e991f6f5fbb'/>
<id>urn:sha1:fe06e9f45646893dc88ebe9e657e2e991f6f5fbb</id>
<content type='text'>
CheckTrailingGarbage was called even when "-passfile" was
used, which is stupid, and causes false positives:

https://github.com/rfjakob/gocryptfs/issues/391
(false error "Received trailing garbage after the password"
when using -passfile in .bash_profile)

Instead of trying to improve the logic to handle that case
and make everything even more complicated, delete the function.

It is unclear if actually helps in some cases, and it definitely
harms as shown by the above bug report.
</content>
</entry>
<entry>
<title>Allow multiple -extpass arguments</title>
<updated>2019-03-03T12:25:30+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-03-03T12:25:30+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=cf27037f20723e934320edeff7f8aa356bdca467'/>
<id>urn:sha1:cf27037f20723e934320edeff7f8aa356bdca467</id>
<content type='text'>
To support arguments containing spaces, -extpass can now
be passed multiple times.

https://github.com/rfjakob/gocryptfs/issues/289
</content>
</entry>
<entry>
<title>Disable Trezor support</title>
<updated>2019-02-04T21:08:03+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-02-04T20:57:24+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=16fac26c57ba303bf60266d24c17f5243e5ea376'/>
<id>urn:sha1:16fac26c57ba303bf60266d24c17f5243e5ea376</id>
<content type='text'>
Trezor support has been broken since Sept 2018
( https://github.com/rfjakob/gocryptfs/issues/261 ).

Disable trezor.go by renaming to trezor.go.broken.
This keeps "dep" from having to pull in A LOT OF dependencies:

Before:

  $ du -sh vendor/
  49M	vendor/

After:

  $ du -sh vendor/
  16M	vendor/
</content>
</entry>
<entry>
<title>tests: fix TestPassfileNewline</title>
<updated>2018-12-16T11:33:25+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-12-16T11:33:25+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=a55e53c196be73fbf06cef00c50f10752aaf1275'/>
<id>urn:sha1:a55e53c196be73fbf06cef00c50f10752aaf1275</id>
<content type='text'>
Due to a copy-paste error, we ran the wrong test in the
subprocess.

Thanks @slackner for noticing at
https://github.com/rfjakob/gocryptfs/commit/295d432175292dbaef572093d784aab55f5c0b8f#r31690478 !
</content>
</entry>
<entry>
<title>passfile: directly read file instead of invoking cat</title>
<updated>2018-12-15T16:09:38+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-12-15T16:09:38+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=295d432175292dbaef572093d784aab55f5c0b8f'/>
<id>urn:sha1:295d432175292dbaef572093d784aab55f5c0b8f</id>
<content type='text'>
Allows better error handling, gets rid of the call to an
external program, and fixes https://github.com/rfjakob/gocryptfs/issues/278 .
</content>
</entry>
<entry>
<title>trezor: show support in version string</title>
<updated>2018-08-15T21:31:37+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-08-15T21:31:37+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=bd054e70ef1c0f9709b5bc216ba148cf088d7edb'/>
<id>urn:sha1:bd054e70ef1c0f9709b5bc216ba148cf088d7edb</id>
<content type='text'>
Show enable_trezor in the version string if we were compiled
with `-tags enable_trezor`. And hide the `-trezor` flag from
the help output if we were not.
</content>
</entry>
</feed>
