open("file",O_CREAT|O_WRONLY|O_EXCL,0444) does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sshfs-fuse (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: sshfs
of course assuming file does not exist
the above statement works correctly when issued on a local filesystem.
When done on a sshfs mounted file system it always returns errno=13 (permission denied).
This happens while executing svn checkout. I want to check out a working directory on a computer running SCO, and I don't have svn binaries for SCO. That is why I need sshfs.
I don't know whether this is a bug in sshfs or in fuse.
My test program:
#include <fcntl.h>
#include <errno.h>
main() {
int fd=open(
close(fd);
}
notebook:~$ vi c.c
notebook:~$ cat c.c
#include <fcntl.h>
#include <errno.h>
main() {
int fd=open(
close(fd);
}
I forgot to mention that the test file is always correctly generated.