Age | Commit message (Collapse) | Author |
|
* 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>.
|
|
* 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.
|
|
* file-exec.c (netfs_S_file_exec): Fix typo and braino in last change.
|
|
* file-exec.c (netfs_S_file_exec): Don't use MAKE_SEND in Hurd
RPC.
* init-startup.c (netfs_startup): Likewise.
|
|
* file-exec.c: Include <fcntl.h> instead of <fcntlbits.h>.
Suggested by Marcus G. Daniels (marcus@cathcart.sysc.pdx.edu).
|
|
Pass context arg to netfs_make_peropen instead of parent node.
|
|
* 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.
|
|
Unlock NP before we attempt to do setuid/setgid (which otherwise can
deadlock during port reauth).
Pay attention to the error code returned by fshelp_exec_reauth, and don't
make NEWPI if it's an error.
|
|
|