stovenator / kungfuse

A FusePy based in memory filesystem
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

man does not work inside kungfuse tree #3

Open mithodin opened 6 years ago

mithodin commented 6 years ago

When trying to open a manpage from inside a mounted kungfuse instance, man gives this error: man: can't change directory to '/home/lucas/code/fusegame/test': Permission denied man: command exited with status 255: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | (cd /home/lucas/code/fusegame/test && LESS=-ix8RmPm Manual page man(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page man(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$-R -M --shift 5 MAN_PN=man(1) manpager) However, other software like info or vim work. Since permissions are not checked anyways, I don't see how the permission to enter the current working directory could be denied. What is going wrong here?

itdaniher commented 6 years ago

strace -f -s 4096 man man -o /tmp/stracelog and then gist /tmp/stracelog?

I'm not sure what's happening either :)

mithodin commented 6 years ago

Well... I ran the command, and if I do it this way, man works. Here's the gist: https://gist.github.com/mithodin/cc05c838f099dfe91bec2025be05f5ea

itdaniher commented 6 years ago

fascinating. what distro are you on? what shell are you using? if you run which man what does it point to? any aliases for man? (type alias)

always fun when the tools to debug an issue partially resolve it....

mithodin commented 6 years ago

I'm using funtoo and zsh (but the same thing happens in bash). which man is /usr/bin/man, and man is version 2.7.6.1. There are no aliases.

mithodin commented 6 years ago

Huh, I've just tried the same on Mint and it works fine. man 2.7.5 there.