Corinna Vinschen
17c8ac3992
* regtool.cc (options): Add 'binary'.
...
(usage): Document 'load|unload|save' and '-b'.
(find_key): Add 'options' parameter, add load/unload.
(cmd_set): Add KT_BINARY case.
(cmd_get): Add hex output in KT_BINARY case.
(cmd_load): New function.
(cmd_unload): New function.
(set_privilege): New function.
(cmd_save): New function.
(commands): Add load, unload and save.
(main): Add '-b'
* utils.sgml (regtool): Document it.
2006-03-03 09:43:35 +00:00
Corinna Vinschen
96a4362c92
* regtool.cc (usage): Clarify help for "-K".
2006-02-15 10:57:17 +00:00
Corinna Vinschen
b17b7644d5
* regtool.cc: Extend copyright-years.
...
(print_version): Ditto.
(cmd_list): Don't depend on terminating '\0' being present on
string-values.
(cmd_get): Don't attempt to read more than present, but keep
extra space for terminating '\0'. Really output REG_BINARY.
Don't leak memory.
(cmd_set): Include trailing '\0' in string's length.
2005-09-08 09:24:41 +00:00
Christopher Faylor
9dc6005ae2
* regtool.cc (opts): The argument to 'K' is not optional.
...
(main): Revert previous change. Just let getopt deal with missing argument.
2005-02-27 17:55:54 +00:00
Christopher Faylor
2391eea57e
* regtool.cc (main): Avoid a SEGV when nothing follows -K.
2005-02-27 06:10:58 +00:00
Christopher Faylor
4bfc614b42
fix whitespace, update some copyrights
2004-10-25 15:49:36 +00:00
Corinna Vinschen
dae37d5d84
* regtool.cc (usage): Add missing linefeed. Move example to --help
...
text. Fix forward slash description.
2003-08-15 08:58:54 +00:00
Joshua Daniel Franklin
aa275fe010
* cygcheck.cc (usage) Add description output.
2003-04-26 21:52:03 +00:00
Joshua Daniel Franklin
98467dae59
Add final newlines to utils
2002-09-15 19:24:37 +00:00
Christopher Faylor
403985a498
* regtool.cc (find_key): Add support for custom key separator.
...
(usage): Document it.
2002-08-13 15:37:32 +00:00
Corinna Vinschen
381fb8baa1
* regtool.cc (Fail): Be more verbose.
...
(find_key): Add support for remote registry access.
(usage): Document it.
* utils.sgml: Document it.
2002-06-07 11:12:16 +00:00
Christopher Faylor
9bd0241009
* regtool.cc (prog_name): New global variable.
...
(longopts): Ditto.
(opts): Ditto.
(usage): Standardize usage output. Rearrange/add descriptions.
(print_version): New function.
(main): Accomodate longopts and new --help, --version options. Add check for
(_argv[optind+1] == NULL).
2002-06-03 02:57:55 +00:00
Corinna Vinschen
4c61c04cd3
* regtool.cc (find_key): Handle keys with only one subkey.
2001-07-15 11:27:23 +00:00
Christopher Faylor
288f125efd
* regtool.cc (find_key): Revert previous change.
2001-06-28 02:46:11 +00:00
Christopher Faylor
c135faa8b3
* regtool.cc (find_key): Allow '/' as a synonym for '\\'.
2001-06-27 17:38:40 +00:00
Christopher Faylor
37770e0009
* regtool.cc (cmd_list): Add new registry display options.
...
(cmd_list): Add code to implement -p, -k, and -l options.
* regtool.cc (Fail): Add call to LocalFree to free memory allocated by
FormatMessage.
2001-01-10 22:34:02 +00:00
Christopher Faylor
7adad1217b
more formatting changes.
2001-01-10 15:22:40 +00:00
Christopher Faylor
b82a7a5e35
* regtool.cc (translate): Ensure that 'c' is initialized.
...
(cmd_set): Ditto for rv.
2001-01-10 14:20:16 +00:00
Corinna Vinschen
a4bc548973
* regtool.cc (find_key): Add parameter `access'.
...
Call `RegOpenKeyEx' with that desired access.
(cmd_add, cmd_remove, cmd_set, cmd_unset): Call
`find_key' with KEY_ALL_ACCESS access.
(cmd_list, cmd_check, cmd_get): Call `find_key'
with KEY_READ access.
2000-05-19 22:02:23 +00:00
Christopher Faylor
1fd5e000ac
import winsup-2000-02-17 snapshot
2000-02-17 19:38:33 +00:00