aboutsummaryrefslogtreecommitdiff
path: root/sutils/clookup.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix build warningsSamuel Thibault2022-01-011-3/+5
| | | | No actual behavior change.
* clookup: Fix warningSamuel Thibault2020-11-221-2/+2
| | | | | * sutils/clookup.c (file_name_lookup_carefully): Make head a non-const char *.
* Fix warningsSamuel Thibault2018-03-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libdiskfs/boot-start.c (diskfs_start_bootstrap): Fix printf format. * libfshelp/delegate.c: Include <alloca.h> and <stdlib.h>. * libfshelp/start-translator-long.c: Include <stdlib.h>. * libshouldbeinlibc/ugids-verify-auth.c (server_verify_make_auth): Fix prototypes for password_check_group and password_check_user. * libstore/argp.c: Include <stdlib.h>. * libstore/task.c: Include <stdlib.h>. * exec/exec.c: Include <mach/vm_param.h>. * libbpf/bpf_impl.c: Include <stdlib.h>. * proc/info.c (S_proc_getloginpids): Remove local variables leader_task and leader_sub. * proc/main.c (main): Remove local variable original_argv. * boot/boot.c (task_died, S_mach_notify_new_task): Fix printf format. * exec/elfcore.c: Include <alloca.h> and <mach/vm_param.h>. * trans/crash.c: Include <hurd/msg.h>. * trans/random.c: Include <signal.h>. * utils/login.c: Include <signal.h>. * utils/id.c: Include <hurd/msg.h>. * utils/devprobe.c: Include <stdlib.h>. * utils/addauth.c: Include <hurd/msg.h>. * utils/frobauth-mod.c: Include <hurd/msg.h>. * utils/storeread.c: Include <stdlib.h>. * utils/msgport.c: Include <hurd/msg.h>. * sutils/clookup.c (file_name_lookup_carefully): Fix lookup function prototype, make head and tail const. * utils/rpcscan.c: Include <stdlib.h>. * sutils/bless.c: Include <stdlib.h>. * fstests/fstests.c: Include <stdlib.h>. * startup/startup.c (argz_task_insert_right): Fix printf format. * init/init.c: Include <stdlib.h>.
* sutils: fix file_name_lookup_carefullyJustus Winter2013-06-291-32/+18
| | | | | | | | | | | | | | | | | | | file_name_lookup_carefully is like file_name_lookup but tries hard to avoid starting any passive translators while doing the lookup. The callback contains code to get a new handle to the root if it encounters a translator, but this code was not being executed if the node had no record of an passive translator, just an active one. Fix the callback by dropping the test for a passive translator. AIUI the current check for a passive translator makes no sense, as the code is supposed to fail on encountering a passive translator. This fixes lookups inside translators that have no passive translator. For example if /run is a tmpfs started only as active translator, touch /run/lock && mount tmpfs -t tmpfs /run/lock -o size=5M would fail. * sutils/clookup.c (lookup): Drop the test for an passive translator.
* fix common misspellingsJonathan Neuschäfer2011-08-201-1/+1
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* 2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell2000-03-171-2/+3
| | | | | * clookup.c (file_name_lookup_carefully): Don't use MOVE_SEND in Hurd RPC.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-0/+1
| | | | * clookup.c: Add #include <sys/mman.h>.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-3/+2
| | | | | * clookup.c (file_name_lookup_carefully): Use munmap instead of vm_deallocate.
* 1998-11-28 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-11-291-6/+5
| | | | | * clookup.c (file_name_lookup_carefully): Change __getuids to geteuids. Use hurd_file_name_lookup instead of __hurd_file_name_lookup.
* 1998-10-24 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-10-241-4/+4
| | | | | * clookup.c (file_name_lookup_carefully): Use getdport instead of __getdport, getumask () instead of _hurd_umask.
* (file_name_lookup_carefully/lookup): When appending TAIL toThomas Bushnell1996-08-011-1/+1
| | | | RETRY_NAME, use strcpy instead of strcat.
* Initial revisionMiles Bader1996-06-191-0/+169