Skip to content

Commit 278b878

Browse files
committed
update. fuse
1 parent 48ae4f3 commit 278b878

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

cmd/lsshfs/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func main() {
1616
app := lsshfs.Lsshfs()
1717
args := common.NormalizeGenerateLSSHConfArgs(os.Args)
1818
args = common.NormalizeTrailingBoolFlags(args, map[string]bool{
19+
"--debug": true,
1920
"--foreground": true,
2021
"--rw": true,
2122
"--list": true,

internal/app/lsshfs/app.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ USAGE:
143143
cli.ShowAppHelp(c)
144144
return fmt.Errorf("lsshfs requires remote_path and mountpoint")
145145
}
146+
if c.Bool("debug") {
147+
if logPath := debugLogPath(c.Args()[1]); logPath != "" {
148+
_ = os.Setenv("LSSHFS_DEBUG_LOG", logPath)
149+
_ = os.Setenv("GO_SSHLIB_DEBUG_LOG", logPath)
150+
fmt.Fprintf(os.Stderr, "Debug log: %s\n", logPath)
151+
}
152+
}
146153

147154
specHost, remotePath, parseErr := mountfs.ParseRemoteSpec(c.Args()[0])
148155
if parseErr != nil {

vendor/github.com/blacknon/go-sshlib/fuse_forward.go

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)