Issues

Issue #134 new

9pfuse: Non-portable value for O_LARGEFILE

Albert Ou
created an issue

In plan9port/src/cmd/9pfuse/main.c, O_LARGEFILE is always #defined to 0100000 on Linux, whereas it is instead 0400000 for arm and arm64 (as set by arch/arm/include/uapi/asm/fcntl.h in the kernel sources). Unfortunately, a few other architectures also use different values.

Hence, 9pfuse complains about invalid open(2) flags:

unexpected open flags 02444000
ls: cannot open directory .: Permission denied
unexpected open flags 0400000
zsh: permission denied: file

Comments (0)

  1. Log in to comment