aboutsummaryrefslogtreecommitdiff
path: root/libnetfs/dir-lookup.c
Commit message (Collapse)AuthorAgeFilesLines
* 2001-08-31 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-09-091-7/+16
| | | | | | | | | | | | * file-get-translator.c (netfs_S_file_get_translator): If asprintf() fails, set ERR to errno. * dir-lookup.c (netfs_S_dir_lookup): Catch if asprintf() fails and return ENOMEM. If netfs_make_protid() fails, set ERROR to errno, not ENOMEM. Do this before freeing USER. * dir-mkfile.c (netfs_S_dir_mkfile): If netfs_make_protid() fails, set ERROR to errno and free USER. * file-exec.c (netfs_S_file_exec): Likewise. Reported by Igor Khavkine <i_khavki@alcor.concordia.ca>.
* 2001-04-01 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-06-161-21/+38
| | | | | | | | | | | | | | | | | | | | | | * dir-lookup.c (netfs_S_dir_lookup): Use iohelp_create_empty_iouser. Use iohelp_dup_iouser as per the new semantics. * dir-mkfile.c (netfs_S_dir_mkfile): Use iohelp_dup_iouser as per the new semantics. * file-exec.c (netfs_S_file_exec): Likewise. * file-reparent.c (netfs_S_file_reparent): Likewise. * fsys-getroot.c (netfs_S_fsys_getroot): Use iohelp_create_complex_iouser. * fsys-syncfs.c (netfs_S_fsys_syncfs): Use iohelp_create_simple_iouser. * io-duplicate.c (netfs_S_io_duplicate): Use iohelp_dup_iouser as per the new semantics. * io-reauthenticate.c (netfs_S_io_reauthenticate): Use iohelp_reauth as per the new semantics. * io-restric-auth.c (netfs_S_io_restric_auth): Use iohelp_create_complex_iouser. Check return values. * trans-callback.c (_netfs_transcallback2_fn): Use iohelp_create_simple_iouser.
* 2000-12-30 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2000-12-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | * netfs.h (struct node): Adjust comment fixes by last change to be more in line with similar comments elsewhere. * make-node.c (netfs_make_node): Return 0 if malloc does. Reported by Neal H Walfield <neal@cs.uml.edu>. 2000-12-29 Neal H Walfield <neal@cs.uml.edu> * dir-lookup.c (netfs_S_dir_lookup): Do not bother zeroing np, it happens later anyway. Replace bcopy with memcpy. * file-get-translator.c (netfs_S_file_get_translator): Replace bcopy with memcpy. * io-seek.c (netfs_S_io_seek): Only get the lock if we need it. * io-stat.c (netfs_S_io_stat): Replace bcopy with memcpy. * io-write.c (netfs_S_io_write): Wait until the lock is needed. * netfs.h: Complete documentation revision. The locking protocol is now very explicit. * nput.c (netfs_nput): Added comment. * nrele.c (netfs_nrele): Likewise. * set-get-trans.c: Likewise.
* 2000-03-17 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-171-3/+4
| | | | | * dir-lookup.c (netfs_S_dir_lookup): Use ports_get_send_right. Deallocate DIRPORT after fshelp_fetch_root.
* 2000-01-25 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-01-251-2/+4
| | | | | * dir-lookup.c (netfs_S_dir_lookup): Follow symlink despite flags if MUSTBEDIR is set (i.e. there was a trailing slash).
* Thu Mar 4 07:18:21 1999 Joel N. Weber II <devnull@theobromine.ai.mit.edu>Thomas Bushnell1999-03-051-2/+3
| | | | | * dir-lookup.c (netfs_S_dir_lookup): Only set newnode to 1 if the lookup does not need to be retried as a result of getting EEXIST.
* 1999-01-22 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-01-241-45/+39
| | | | | * file-set-translator.c: Remove makedev, major, minor macro definition. * dir-lookup.c: Likewise.
* Tue Jul 14 16:30:48 1998 Thomas Bushnell, n/BSG <tb@mit.edu>Thomas Bushnell1998-07-141-3/+1
| | | | | * dir-lookup.c (netfs_S_dir_lookup): Don't require the node to be a directory in the null pathname case.
* (netfs_S_dir_lookup):Miles Bader1997-09-091-1/+1
| | | | Fix type signature of short_circuited_callback1.
* (netfs_S_dir_lookup):Miles Bader1997-09-051-0/+1
| | | | Re-aquire the lock on DNP when looping to follow a symlink.
* (netfs_S_dir_lookup):Miles Bader1997-08-281-16/+1
| | | | Don't lock DNP or assume it's locked when it shouldn't be.
* (netfs_S_dir_lookup):Miles Bader1997-06-201-2/+2
| | | | Use S_IPTRANS bit in nn_stat st_mode field rather than istranslated field.
* (netfs_S_dir_lookup):Miles Bader1997-03-021-30/+40
| | | | | | Implement shadow root .. traversal. Use context po argument to netfs_make_peropen & as cookie to fshelp_fetch_root, instead of parent node.
* Mon Nov 18 17:06:39 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1996-11-181-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * netfs.h (netfs_report_access): Return error_t. * file-check-access.c (netfs_S_file_check_access): Deal with errors from netfs_report_access. Sat Nov 16 17:17:50 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * io-restrict-auth.c (netfs_S_io_restrict_auth): Fix several typos. * fsys-getroot.c (netfs_S_fsys_getroot): iohelp_make_iouser -> iohelp_create_iouser. New arg syntax for fshelp_fetch_root. Fri Nov 15 13:39:03 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * netfs.h (struct protid): Replace member `credential' with `user' of new type. All uses of old `credential' member changed to use `user' member. Change all functions that used to take `struct netcred' args to take `struct iouser' args. All callers changed. (netfs_copy_credential, netfs_dropy_credential, netfs_make_credential): Delete functions. * dir-lookup.c (netfs_S_dir_lookup): netfs_copy_credential -> iohelp_dup_iouser. * dir-mkfile.c (netfs_S_dir_mkfile): Likewise. * file-exec.c (netfs_S_file_exec): Likewise. * io-duplicate.c (netfs_S_io_duplicate): Likewise. * release-protid.c (netfs_release_protid): netfs_drop_credential -> iohelp_free_iouser. * dir-lookup.c (netfs_S_dir_lookup): Omit uses of netfs_interpret_credential; do it with new structures. * file-exec.c (netfs_S_file_exec): Likewise. * file-getcontrol.c (netfs_S_file_getcontrol): Likewise. * file-set-translator.c (netfs_S_file_set_translator): Likewise; using fshelp_isowner for permission check. * io-restrict-auth.c (netfs_S_io_restrict_auth): Likewise; guts rewritten. * dir-lookup.c (netfs_S_dir_lookup): netfs_make_credential -> iohelp_make_iouser. * fsys-getroot.c (netfs_S_fsys_getroot): Likewise. * fsys-syncfs.c (netfs_S_fsys_syncfs): Likewise. * io-reauthenticate.c (netfs_S_io_reauthenticate): Use iohelp_reauth instead of doing it by hand.
* fooMichael I. Bushnell1996-05-141-1/+1
|
* entered into RCSMichael I. Bushnell1996-03-121-6/+4
|
* Formerly dir-lookup.c.~6~Michael I. Bushnell1996-02-151-3/+3
|
* Formerly dir-lookup.c.~5~Michael I. Bushnell1995-12-191-1/+1
|
* Formerly dir-lookup.c.~4~Michael I. Bushnell1995-12-181-28/+41
|
* Formerly dir-lookup.c.~3~Michael I. Bushnell1995-12-121-3/+3
|
* Formerly dir-lookup.c.~2~Michael I. Bushnell1995-11-151-39/+273
|
* Initial revisionMichael I. Bushnell1995-11-151-0/+143