diff options
author | Miles Bader <miles@gnu.org> | 1997-02-14 01:19:38 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-02-14 01:19:38 +0000 |
commit | 781fa8a428e3cab751d2ed2426d38d061fdc0ecf (patch) | |
tree | 996b3c9e21ddeb9bd5f5f3a5556017495ada56ff /libdiskfs | |
parent | 5fe269f922f2b2c5f43714927ce2de8c03e143bf (diff) |
(diskfs_rename_dir, checkpath):
Don't pass depth args to diskfs_lookup.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-renamed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c index 06af702f..1847720f 100644 --- a/libdiskfs/dir-renamed.c +++ b/libdiskfs/dir-renamed.c @@ -37,7 +37,7 @@ checkpath(struct node *source, /* nothing */; /* This special lookup does a diskfs_nput on its first argument when it succeeds. */ - err = diskfs_lookup (np, "..", LOOKUP | SPEC_DOTDOT, &np, 0, cred, 1, 0)) + err = diskfs_lookup (np, "..", LOOKUP | SPEC_DOTDOT, &np, 0, cred)) { if (err) { @@ -93,7 +93,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname, /* 1: Lookup target; if it exists, make sure it's an empty directory. */ ds = buf; - err = diskfs_lookup (tdp, toname, RENAME, &tnp, ds, tocred, 0, 0); + err = diskfs_lookup (tdp, toname, RENAME, &tnp, ds, tocred); assert (err != EAGAIN); /* <-> assert (TONAME != "..") */ if (tnp == fnp) @@ -135,7 +135,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname, tmpds = alloca (diskfs_dirstat_size); err = diskfs_lookup (fnp, "..", RENAME | SPEC_DOTDOT, - &tmpnp, tmpds, fromcred, 1, 0); + &tmpnp, tmpds, fromcred); assert (err != ENOENT); assert (tmpnp == fdp); if (err) @@ -198,7 +198,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname, /* 4: Remove the entry in fdp. */ ds = buf; mutex_unlock (&fnp->lock); - err = diskfs_lookup (fdp, fromname, REMOVE, &tmpnp, ds, fromcred, 1, 0); + err = diskfs_lookup (fdp, fromname, REMOVE, &tmpnp, ds, fromcred); assert (tmpnp == fnp); diskfs_nrele (tmpnp); if (err) |