aboutsummaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Initial revisionMiles Bader1996-01-231-0/+118
|
* (main): Move a bunch of stuff into psout() in psout.c.Miles Bader1996-01-231-133/+27
| | | | | | | (spec_abbrevs, ps_specs): New variables. (fmts): Get rid of redundant header specifications. (fmt_sortrevs): Variable removed. (main, options): Rename -o flag to -U for posix compat (ick).
* (options, main): Make -g/--goaway only apply to active translators.Miles Bader1996-01-231-11/+14
| | | | (options): Rearrange a bit.
* Pass the appropiate -R options to login, and -p.Miles Bader1996-01-231-4/+6
| | | | Only print a preceeding newline if this is a retry.
* Instead of giving --su to login, use all the component options it stood for.Miles Bader1996-01-101-1/+1
| | | | Use --program-name for nice errors.
* (main):Miles Bader1996-01-101-233/+411
| | | | | | | | | | | | | | | | | | | | | | | | | Use add_canonical_host() to implement the -h option. Only let root specify the login host. child_lookup() now takes an additional PATH arg, and calls hurd_file_name_path_lookup() instead. Pass a path when looking up the shell executable. Do all file-name lookups using the target authentication, so that login isn't a security hole. Rework how password-checking is done somewhat (only ask when necessary). Use exec_reauth() instead of our own. If setting the real [ug]id, also add it as the `saved id'. Use BACKUP_SHELL instead of FAILURE_SHELL define. Get rid of various string vars only used once. (add_canonical_host): New function. (add_utmp_entry): Use VIA_ADDR instead of VIA in the utmp entry if it fits better. (add_entry): Function moved out of main. (cat): Take an io_t port instead of a file descriptor. (options, main): Add -k/--keep & -S/--shell-arg options. Remove -m/--umask option; use UMASK param instead. (FAILURE_SHELL): Macro deleted. (default_args): Add BACKUP_SHELL param.
* Initial revisionMiles Bader1996-01-021-0/+3
|
* Initial revisionMiles Bader1995-12-301-0/+18
|
* (main, options): Add --retry/-R and --paranoid/-P options.Miles Bader1995-12-301-10/+58
| | | | (main): Don't ask for password by name if only one user.
* (main):Miles Bader1995-12-291-12/+17
| | | | | | If -f/--no-passwd is specified, get rid of the effect of the login executable being setuid/gid. Only set the shell proc's owner to an effective uid.
* (libutil-libsubst): New hack.Miles Bader1995-12-211-0/+4
| | | | (login): Depend on -lutil.
* Everything changed.Miles Bader1995-12-211-161/+457
|
* (main, options): If the specified sort field begins with `-', reverse the sort.Miles Bader1995-12-211-121/+75
| | | | | | | | | | (main): If there is no current uid, don't try to filter with it. (FILTER_NOT_LEADER): Renamed from FILTER_NSESSLDR. (main): Rename ps_not_leader_filter from ps_not_sess_leader_filter. (main): Use idvec routines instead of ids. Use argz functions to store tty_names instead of our own. (make_ids, ids_add, ids_contains): Routines deleted. Include <idvec.h>.
* (options): Reformat doc string for --tty option.Miles Bader1995-12-171-2/+2
|
* (main): Implement 'w' option.Miles Bader1995-12-171-2/+28
| | | | (options): Add argument and doc for 'w' option.
* Initial revisionMiles Bader1995-12-131-0/+295
|
* (SRCS): Add login.cMiles Bader1995-12-131-3/+3
| | | | | (targets): Add login. (login): Depends on ../libshouldbelibc/libshouldbelibc.
* (main):Miles Bader1995-12-062-5/+5
| | | | Change uses of the INDEX field in argp_state structures to use NEXT instead.
* (main):Miles Bader1995-12-061-3/+2
| | | | | Change uses of the INDEX field in argp_state structures to use NEXT instead. Fix default prefix-printing test.
* (main):Miles Bader1995-12-061-2/+2
| | | | | | Supply the new SEP argument to argz_stringify. Change uses of the INDEX field in argp_state structures to use NEXT instead. Fix default prefix-printing test.
* (main):Miles Bader1995-12-061-4/+4
| | | | | Supply the new SEP argument to argz_stringify. Change uses of the INDEX field in argp_state structures to use NEXT instead.
* (main): Correctly whether to print prefix by default.Miles Bader1995-12-041-3/+3
| | | | (options): Fix help strings.
* (main): Use new libps stream type.Miles Bader1995-11-211-4/+9
|
* (main): Grow TTY_NAMES properly even when it's empty.Miles Bader1995-11-141-1/+1
|
* (ids_add): Increase the size of IDS even when 0.Miles Bader1995-11-081-1/+1
|
* (print_info):Miles Bader1995-11-061-6/+9
| | | | Use the new FLAGS argument to file_get_storage_info. Add new storage types.
* (main):Miles Bader1995-11-061-6/+21
| | | | Change to use the new wierd callback interface to fshelp_start_translator.
* (main): Use file_get_fs_options, not fsys_get_options.Miles Bader1995-11-061-15/+24
| | | | (doc): `filesystem' --> `FILESYS'.
* (options): Add --not-owner/-O option.Miles Bader1995-11-021-27/+75
| | | | | | | | | | (id_t, struct ids): New type. (make_ids, ids_add, ids_contains): New functions. (main): Use a struct ids instead of multiple variables to hold the wanted uids list, which renamed to ONLY_UIDS. Add the NOT_UIDS list to contain the opposite sense, and use it. (main): Use proc_stat_proc_info instead of proc_stat_info and PSTAT_PROC_INFO instead of PSTAT_INFO.
* (fmts): Add RPC field to the -l format.Miles Bader1995-11-021-1/+1
|
* (options):Miles Bader1995-10-311-16/+21
| | | | | | | | Change --force/-f to --goaway/-g. Add flags for killing translators: --recurse/-r, --force/-f, --nosync/-S. (doc): New variable. (main): Support new flags. Have some of the options update flag words instead of setting variables.
* (options): --all is -e, not -a.Miles Bader1995-10-301-1/+1
|
* (parse_enum): Use argp_error.Miles Bader1995-10-211-9/+2
|
* (targets): Add storeinfo.Miles Bader1995-10-211-3/+5
| | | | | (SRCS): Add storeinfo.c. (storeinfo): New target.
* Initial revisionMiles Bader1995-10-211-0/+224
|
* (options): FILE --> FILESYS in help msg.Miles Bader1995-10-211-7/+9
| | | | | | (args_doc): OPTION --> FS_OPTION, since the usage message already uses OPTION to mean those to fsysopts. (doc): New variable; give some common choices for FS_OPTION.
* (args_doc): New variable.Miles Bader1995-10-211-17/+13
| | | | (main): Set ARGZ inside of parse_opt.
* (options): Converted to argp format.Miles Bader1995-10-181-70/+61
| | | | | | | (main): Use argp, not getopt. (usage, USAGE, SHORT_OPTIONS): Deleted. (arg_doc, doc): New variables. Include <argp.h> not <getopt.h>.
* (options): Converted to argp format.Miles Bader1995-10-181-68/+43
| | | | | | (main): Use argp, not getopt. (usage, USAGE, SHORT_OPTIONS): Deleted. Include <argp.h> not <getopt.h>.
* (options): Converted to argp format.Miles Bader1995-10-181-58/+33
| | | | | | | (main): Use argp, not getopt. (usage, USAGE, SHORT_OPTIONS): Deleted. (arg_doc): New variable. Include <argp.h> not <getopt.h>.
* (parse_enum): Use ARGP_HELP_STD_ERR.Miles Bader1995-10-181-2/+2
|
* (main): Use realloc on a variable in main instead of alloca, since theMiles Bader1995-10-111-185/+163
| | | | | | | | | storage gets used after parse_opt returns. (options): Converted to argp format. (main): Use argp, not getopt. (usage, USAGE, SHORT_OPTIONS): Deleted. (arg_doc, doc): New variables. Include <argp.h> not <getopt.h>.
* (usage, options, main): Change -h/--no-header options to -p/--prefix andMiles Bader1995-10-051-10/+17
| | | | | | -P/--no-prefix. (main): Unless overridden by -p/-P, only print a FILE: prefix when there are multiple files on the command line.
* Get rid of rules related to ../lib.Miles Bader1995-09-051-4/+3
| | | | (settrans): Depend on libfshelp.a instead of starttrans.o.
* (main): Use fshelp_start_translator instead of start_translator from ../lib.Miles Bader1995-09-051-2/+4
|
* (all): New target.Miles Bader1995-08-241-18/+8
| | | | | | | | (ps, settrans, showtrans, fsysopts): Put all dependencies in these targets. (settrans-HURDLIBS, showtrans-HURDLIBS, ps-HURDLIBS): Removed. (settrans, showtrans, fsysopts, ps): Get rid of things that are now in libshouldbeinlibc. Get rid of rules dealing with error.o.
* (DIST_FILES): sh.ChangeLog -> shd.ChangeLog.Michael I. Bushnell1995-07-231-1/+1
|
* (SHORT_OPTIONS): Remove '?' as getopt usurps it.Miles Bader1995-07-071-3/+3
| | | | (options, main): Use '&' instead of '?' to mean help.
* (fsysopts): Don't list twice.Michael I. Bushnell1995-07-071-1/+0
|
* (main, apply_auth_to_loginid, apply_auth_to_pgrp): Remove assignmentsMichael I. Bushnell1995-07-071-15/+19
| | | | from inside if tests.