Age | Commit message (Collapse) | Author |
|
The deallocation also needs to be fixed.
Also, fetch_procinfo already took care of the conversion.
* exec/elfcore.c (dump_core): Fix procinfoCnt taken from
proc_getprocinfo.
* utils/login.c (check_owned): Likewise.
* libps/procstat.c (merge_procinfo): Remove conversion between bytes and
int, already handled by fetch_procinfo.
|
|
The procinfoCnt argument is the number of elements of the procinfo_t array,
not its size in bytes.
* exec/elfcore.c (dump_core): Fix procinfoCnt given to proc_getprocinfo.
* libps/procstat.c (merge_procinfo): Likewise.
* utils/login.c (check_owned): Likewise.
|
|
* Fix spelling with codespell[1] and manually review it.
[1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
|
|
* utils/login.c (main): Update `ports[INIT_PORT_CWDIR]' as soon as new cwd
is determined according to HOME, since child lookups need to be relative to
new homedir (e.g. for .hushlogin).
|
|
* utils/login.c (main): Fix comment typo.
|
|
* login.c (main): Remove extern declaration and invocation of
_argp_unlock_xxx.
|
|
* pids.c (add_fn_pids): unsigned -> size_t
* w.c (add_utmp_procs): Likewise.
* login.c (add_canonical_host): Likewise.
* ps.c (main): Likewise.
* login.c (add_entry, main): Likewise.
* settrans.c (main): int -> size_t
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* vmstat.c (main): Use int for FWIDTHS.
* ping.c (main): size_t -> socklen_t
* fakeauth.c (S_auth_getids, S_auth_makeauth,
S_auth_server_authenticate): u_int -> size_t
* showtrans.c (main): Cast field width/precision args to int.
|
|
* login.c (main): Pass controlling terminal ID port to the child.
|
|
* pids.c: Add #include <sys/mman.h> for munmap decl.
* showtrans.c: Likewise.
* login.c: Likewise.
* storeread.c: Likewise.
* msgport.c: Likewise.
|
|
* login.c (cat): Use munmap instead of vm_deallocate.
(check_owned): Likewise.
(kill_login): Likewise.
* storeread.c (main): Likewise.
* showtrans.c (main): Likewise.
* pids.c (add_fn_pids): Likewise.
* msgport.c (cmd_getenv): Likewise.
|
|
* login.c (main): For no-uids shell, default SH_ARG0 to informative
value. Use asprintf to construct it.
|
|
* login.c (add_utmp_entry): Properly call setutent and endutent
around the getutline call.
|
|
* login.c (main): Correctly implement -f instead of always
acting as if it were set.
|
|
* login.c (main): When transitioning from no UID's to having UID's
create a new session like normal. Reported by Mark M. Kettenis
<kettenis@wins.uva.nl>.
|
|
* login.c (main): If no effective uid, really use first auxiliary
uid to use as password entry to get parameters from.
|
|
* ps.c (main): Fix return type to int, and use return.
* ids.c (main): Likewise.
* w.c (main): Likewise.
* login.c (main): Likewise.
* settrans.c (main): Likewise.
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* storeinfo.c (main): Likewise.
|
|
Use ugids_verify_make_auth instead of ugids_verify and ugids_make_auth.
|
|
New variable.
(main):
Use ugids operations instead of doing [ug]id frobbing ourselves.
(options):
Remove uid/gid args.
<ugids.h>:
New include.
|
|
Add user-in-group-0-can-use-his-own-password-to-su hack.
|
|
* login.c (add_utmp_entry): Revert change of December 10, 1996.
|
|
* login.c (add_utmp_entry): ut_addr has changed to be an array;
stash the IP address in the first slot.
|
|
|
|
Deal with crypt failing.
|
|
Look for NOBODY in ARGS_DEFS too, and use a last ditch default if we can't
find it anywhere.
|
|
Only declare reference to crypt weak if HAVE_CRYPT isn't defined.
|
|
|
|
|
|
(options):
Change --inherit-environ to --preserve-environment.
Change --no-environ to --no-environment-args.
Change --environ to --envvar and --environ-default to --envvar-default.
|
|
|
|
|
|
|
|
|
|
Get rid of `Beware of dog' -- it can't ever happen.
Rename watch_login calls to check_login; don't use return value.
(check_login):
Renamed from watch_login. Change type to void.
Exit if there's no such process.
|
|
(watch_login): New function.
(dog): Use watch_login. Get rid of wierd rules for root-gone-away.
|
|
|
|
|
|
Include all args in the asprintf.
Put the ARGV message in parens.
|
|
(dog): Take new ARGV argument, and record status in it for ps.
(main): Pass ARGV to dog.
(add_utmp_entry): Always fill in UTMP.ut_line. Set UTMP.ut_type.
|
|
|
|
(main: child_lookup): Pass 0 for new LOOKUP arg to hurd_file_name_path_lookup.
(get_utmp_host): Function removed.
(add_utmp_entry): Get rid of TTY_FD parameter. Don't search for the tty
unless we need it to get the old host, since login does it for us.
Also use the `existing host' in the case that a new one isn't specified.
(main): Update call to add_utmp_entry.
|
|
(add_utmp_entry): Use gettimeofday instead of time to get the time.
|
|
|
|
(dog): Don't kill session if the user logged in! Print newline before message.
|
|
|
|
|
|
|
|
Only add utmp entry for session leader.
Clear process owner if no uids.
Fork self-destruct timer when appropiate.
(default_args): Add NOAUTH_TIMEOUT entry.
(check_owned, kill_login, dog): New functions.
(options, main): Remove -z/--no-utmp option.
|
|
|
|
(main): Remove const from decl of USER & ARG.
(fail): Remove const from decl of VIA.
|
|
(main) [fail]: Declare VIA `char const *'.
(main): Declare USER `char const *'.
Declare ARG `char const *'.
(main): Provide new third arg to proc_setowner.
(main) [parse_opt] [case ARGP_KEY_ARG]: Cast first arg of argz_create
appropriately.
(main): Likewise.
|