Skip to content

Commit

Permalink
fix: landlock os.args error (tries to lock on wrong path)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngergs committed Apr 11, 2024
1 parent 9ebfb91 commit 432eda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/websrv/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ func setup(conf *config) (string, error) {
return "", fmt.Errorf("%w: %d\n", ErrInvalidNumberArguments, len(args))
}

return os.Args[0], nil
return args[0], nil
}

0 comments on commit 432eda9

Please sign in to comment.