Skip to content

Commit

Permalink
Merge pull request #262 from mpiatka/unlink_fix
Browse files Browse the repository at this point in the history
Fix untagging files via VFS
  • Loading branch information
oniony authored Nov 30, 2022
2 parents 5e46722 + 2cb80da commit 0bf4b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vfs/fusevfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,11 @@ func (vfs FuseVfs) Unlink(name string, context *fuse.Context) fuse.Status {

switch path[0] {
case tagsDir:
dirName := path[len(path)-2]
dirName := path[len(path)-3]

var tagName, valueName string
if dirName[0] == '=' {
tagName = unescape(path[len(path)-3])
tagName = unescape(path[len(path)-4])
valueName = unescape(dirName[1:])
} else {
tagName = unescape(dirName)
Expand Down

0 comments on commit 0bf4b80

Please sign in to comment.