summaryrefslogtreecommitdiff
path: root/ftpfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-18 18:51:30 +0000
committerMiles Bader <miles@gnu.org>1997-08-18 18:51:30 +0000
commitd91287ce1fde56cb61cb62664f0841ee43b0a398 (patch)
treec878a9813db61958f7876d6e348de490db14c26a /ftpfs
parentdd2c5b65620bd29498b562867fe40226fbb1893a (diff)
(ftpfs_create):
Use ftpfs_dir_null_lookup instead of ftpfs_dir_lookup.
Diffstat (limited to 'ftpfs')
-rw-r--r--ftpfs/fs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ftpfs/fs.c b/ftpfs/fs.c
index 18f5a358..2e049179 100644
--- a/ftpfs/fs.c
+++ b/ftpfs/fs.c
@@ -71,15 +71,12 @@ ftpfs_create (char *rmt_path, int fsid,
if (! err)
err = ftpfs_dir_create (new, super_root, rmt_path, &super_root_dir);
if (! err)
- err = ftpfs_dir_lookup (super_root_dir, "", &new->root);
+ err = ftpfs_dir_null_lookup (super_root_dir, &new->root);
if (err)
free (new);
else
- {
- mutex_unlock (&new->root->lock);
- *fs = new;
- }
+ *fs = new;
return err;
}