summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2005-12-02 00:02:24 +0000
committerThomas Schwinge <tschwinge@gnu.org>2005-12-02 00:02:24 +0000
commitc0e2e64e9ea5428ed6a2aef828b5f27213d2ad66 (patch)
tree651dc42fa73eb2319e8b76d25f04c8ce67bbe755
parent0cc7d5bd03c0bb9e9693c6fb7c63be2bb3771ea1 (diff)
Needed patch for fusexmp.c.
-rw-r--r--example-22/fusexmp.c.patch16
-rw-r--r--example/fusexmp.c.patch16
2 files changed, 32 insertions, 0 deletions
diff --git a/example-22/fusexmp.c.patch b/example-22/fusexmp.c.patch
new file mode 100644
index 000000000..be5586e88
--- /dev/null
+++ b/example-22/fusexmp.c.patch
@@ -0,0 +1,16 @@
+--- ../../fuse-0-branch-2.2/example/fusexmp.c 2005-11-17 16:29:01.000000000 +0100
++++ fusexmp.c 2005-03-27 15:48:53.000000000 +0200
+@@ -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;
+
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;
+