diff options
author | 2002-01-09 12:23:27 +0000 | |
---|---|---|
committer | 2002-01-09 12:23:27 +0000 | |
commit | 4b2bef463b46effc57a87f3c7a9cbc5a70602668 (patch) | |
tree | 7570fe5c664ba14d4749d03b3d2852ef60317a25 /python | |
parent | 46a46dc82273cb42747e3897d39e1a926f875c2e (diff) |
fixes
Diffstat (limited to 'python')
-rw-r--r-- | python/Makefile | 2 | ||||
-rw-r--r-- | python/_fusemodule.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/python/Makefile b/python/Makefile index 8b7ea80..12393e7 100644 --- a/python/Makefile +++ b/python/Makefile @@ -1,5 +1,5 @@ _fusemodule.so: _fusemodule.c - gcc -g3 -I/usr/include/python1.5 _fusemodule.c -Wl,-shared -o _fusemodule.so -Wimplicit -lfuse && python -c 'import _fuse' + gcc -g3 -I/usr/include/python2.1 _fusemodule.c -Wl,-shared -o _fusemodule.so -Wimplicit -lfuse && python -c 'import _fuse' clean: rm -f _fusemodule.so *.pyc *.pyo diff --git a/python/_fusemodule.c b/python/_fusemodule.c index d4dd0ff..6956be2 100644 --- a/python/_fusemodule.c +++ b/python/_fusemodule.c @@ -279,7 +279,9 @@ Fuse_main(PyObject *self, PyObject *args, PyObject *kw) "mkdir", "unlink", "rmdir", "symlink", "rename", "link", "chmod", "chown", "truncate", "utime", "open", "read", "write", "flags", "multithreaded", NULL}; - + + memset(&op, 0, sizeof(op)); + if (!PyArg_ParseTupleAndKeywords(args, kw, "|OOOOOOOOOOOOOOOOOii", kwlist, &getattr_cb, &readlink_cb, &getdir_cb, &mknod_cb, &mkdir_cb, &unlink_cb, &rmdir_cb, &symlink_cb, &rename_cb, @@ -307,8 +309,7 @@ Fuse_main(PyObject *self, PyObject *args, PyObject *kw) DO_ONE_ATTR(read); DO_ONE_ATTR(write); - fuse = fuse_new(0, flags); - fuse_set_operations(fuse, &op); + fuse = fuse_new(0, flags, &op); if(multithreaded) pyfuse_loop_mt(fuse); else |