summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-07-20 07:34:40 +0000
committerRoland McGrath <roland@gnu.org>1998-07-20 07:34:40 +0000
commit0740257368664a2093ab00dee6f8fd08637cb3c4 (patch)
tree2262d3e07c549164d201c6812aeba501e99561c0
parent1d8150350d357034a7a7af0fc3ea180fba976b41 (diff)
1998-07-20 Roland McGrath <roland@baalperazim.frob.com>
* dir-lookup.c (trivfs_S_dir_lookup): Fix brainos in last change.
-rw-r--r--libtrivfs/dir-lookup.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libtrivfs/dir-lookup.c b/libtrivfs/dir-lookup.c
index ff836363..80677711 100644
--- a/libtrivfs/dir-lookup.c
+++ b/libtrivfs/dir-lookup.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1994, 1998 Free Software Foundation
This program is free software; you can redistribute it and/or
@@ -53,16 +53,17 @@ trivfs_S_dir_lookup (struct trivfs_protid *cred,
if ((flags & (O_READ|O_WRITE|O_EXEC) & perms)
!= (flags & (O_READ|O_WRITE|O_EXEC)))
return EACCES;
-
+
/* Execute the open */
+ err = 0;
if (trivfs_check_open_hook)
- err = (*trivfs_check_open_hook) (cred->po->cntl, user, flags);
+ err = (*trivfs_check_open_hook) (cred->po->cntl, cred->user, flags);
if (!err)
- err = trivfs_open (cred->po->cntl, cred->user, flags,
+ err = trivfs_open (cred->po->cntl, cred->user, flags,
cred->realnode, &newcred);
if (err)
return err;
-
+
*retry_type = FS_RETRY_NORMAL;
*retry_name = '\0';
*retrypt = ports_get_right (newcred);