diff options
Diffstat (limited to 'example/fusexmp.c.patch')
-rw-r--r-- | example/fusexmp.c.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/example/fusexmp.c.patch b/example/fusexmp.c.patch new file mode 100644 index 000000000..3f01915d0 --- /dev/null +++ b/example/fusexmp.c.patch @@ -0,0 +1,16 @@ +--- ../../fuse-0-branch-2.2/example/fusexmp.c 2005-11-17 16:17:35.000000000 +0100 ++++ fusexmp.c 2005-03-20 20:56:35.000000000 +0100 +@@ -73,7 +73,12 @@ + { + int res; + +- res = mknod(path, mode, rdev); ++ /* On the Hurd we must not use mknod() to create files, but creat() */ ++ if(mode & S_IFREG) ++ res = creat(path, mode & ALLPERMS); ++ else ++ res = mknod(path, mode, rdev); ++ + if(res == -1) + return -errno; + |