diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2002-01-09 12:23:27 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2002-01-09 12:23:27 +0000 |
commit | 4b2bef463b46effc57a87f3c7a9cbc5a70602668 (patch) | |
tree | 7570fe5c664ba14d4749d03b3d2852ef60317a25 /python/_fusemodule.c | |
parent | 46a46dc82273cb42747e3897d39e1a926f875c2e (diff) | |
download | libfuse-4b2bef463b46effc57a87f3c7a9cbc5a70602668.tar.gz |
fixes
Diffstat (limited to 'python/_fusemodule.c')
-rw-r--r-- | python/_fusemodule.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 |