summaryrefslogtreecommitdiffstats
path: root/tools/virt-win-reg
Commit message (Collapse)AuthorAgeFilesLines
* inspection: Fix calls to case_sensitive_path (RHBZ#858126).Richard W.M. Jones2012-09-281-12/+2
| | | | | | | | | | | | | | | | | | | | | Don't assume that if guestfs_case_sensitive_path returns NULL, that it means the file does not exist. The (previously undefined) behaviour of case_sensitive_path was that a NULL return meant "either the file doesn't exist or some other error". However in commit 973581780d8a006f336684fef6762801402d775d this was changed so that if the last element of the path didn't exist, it was assumed to be a new file and the (non-NULL) path of the new file is returned. This change breaks code (including in libguestfs) which tries to use case_sensitive_path as a dual-purpose call to fix-up a path for Windows and test if the file exists. Such code should be rewritten so that it explicitly tests for file existence after calling case_sensitive_path. I examined all the calls to case_sensitive_path in libguestfs and modified them where necessary.
* tools: Fix podwrapper errors in tools directory.Richard W.M. Jones2012-08-281-25/+0
| | | | | | | This also makes the test for license "code" less strict, so it should only match POD, not Perl comments. This fixes commit 2f97bf873b64384835f257f8916bf1ebb2af62b4.
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples
* Update FSF address.Matthew Booth2011-11-081-2/+2
|
* virt-win-reg: Document syntax for deleting keys and values (RHBZ#737944).Richard W.M. Jones2011-10-221-0/+11
| | | | NB: This requires hivex >= 1.3.2 before this syntax becomes true.
* docs: Separate out combined =item 's in man pages.Richard W.M. Jones2011-07-161-1/+3
| | | | | | | | | | | | | | | Turn: =item B<-a> | B<--all> into: =item B<-a> =item B<--all> This gives a more natural-looking manual page, as well as making it easier to directly link to these sections.
* virt-win-reg: Win XP paths can contain %systemdrive%.Richard W.M. Jones2011-05-171-3/+4
|
* virt-win-reg: systemroot macro should be replaced case insensitive.Richard W.M. Jones2011-05-171-1/+1
|
* virt-win-reg: Support HKEY_USERS keys.Richard W.M. Jones2011-05-171-5/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for various Registry keys under HKEY_USERS (user preferences). (1) HKEY_USERS\<SID> where <SID> is a User SID. For example: # virt-win-reg Windows 'HKEY_USERS\S-1-5-19' lists out the LocalService user's registry. (2) HKEY_USERS\<username> where <username> is a Windows local username (this is a libguestfs extension). For example: # virt-win-reg Windows 'HKEY_USERS\rjones' lists out the user preferences of user 'rjones'. HKU can be used as an abbreviation for HKEY_USERS. Merging is also supported.
* virt-win-reg: Don't use implicit $_ in map_path_to_hive function.Richard W.M. Jones2011-05-171-7/+7
|
* virt-win-reg: Don't hard-code the relationship between hive name and path.Richard W.M. Jones2011-05-171-41/+49
| | | | | | | | | | | | | | | | | | | | | | The crucial change is the tuple that is returned by map_path_to_hive: - my ($hivename, [...]) = map_path_to_hive ($_); + my ($hiveshortname, $hivefile, [...]) = map_path_to_hive ($_); Previously the $hivename was both the name of the hive (eg. "sam"), the name of the local copy in /tmp, and the name of the hive in %systemroot%\system32\config. In the new code, the $hiveshortname (eg. "sam") is still used for the local copy in /tmp, but we return $hivefile which is the full Windows path (eg. "/windows/system32/config/sam"). The purpose of this change is to allow us in future to return hives from other Windows directories, specifically HKEY_USERS hives from Windows home directories. Although this is just code motion, it requires some quite extensive changes to virt-win-reg.
* virt-win-reg: Add --unsafe-printable-strings option.Richard W.M. Jones2011-05-171-1/+45
| | | | This also requires hivex >= 1.2.7.
* doc: Use I<-...> for cross-references to command line options.Richard W.M. Jones2011-05-011-7/+7
| | | | This is now used consistently across all the documentation.
* win-reg: Add Windows Tips to documentation.Richard W.M. Jones2010-12-101-0/+90
|
* win-reg: Move documentation after options, combine shell quote sections.Richard W.M. Jones2010-12-101-75/+73
|
* virt-win-reg: Current is the control set Windows chooses at boot.Richard W.M. Jones2010-11-031-1/+1
|
* tools: Use C API for inspection (RHBZ#642930).Richard W.M. Jones2010-10-281-21/+18
| | | | | | | | | | | | | Update the following tools to use the C API for inspection: - virt-cat - virt-edit - virt-ls - virt-tar - virt-win-reg None of the tools in the tools/ directory now use the deprecated Perl inspection APIs.
* tools: Specify format of disks (RHBZ#642934,CVE-2010-3851).Richard W.M. Jones2010-10-221-0/+19
| | | | | | | | | | Sys::Guestfs::Lib is changed in two ways: firstly we take the format string from libvirt and pass it to add_drive_opts. Secondly we allow an extra format => parameter to open_guest which allows the format to be specified for disk images. All the tools are changed to add an extra --format parameter allowing the format to be specified for direct disk images.
* tools: Add section describing quoting libvirt domain names to docs (RHBZ#643624)Richard W.M. Jones2010-10-181-0/+7
|
* Improved error if virt-inspector cannot find OSes in image (RHBZ#591142).Richard Jones2010-05-131-1/+0
|
* po: Include strings from Perl programs in the PO files (RHBZ#559963).Richard Jones2010-05-121-1/+1
| | | | | | | | | xgettext will only recognize '*.pl' as being a Perl file (otherwise it treats it as a C file and does not correctly find any strings in it). This commit also fixes two actual bugs that xgettext found in the strings in our Perl programs.
* tools: Fix documentation for CurrentControlSet (thanks Yuval Kashtan).Richard Jones2010-04-301-2/+17
|
* Documentation updates.Richard Jones2010-04-111-1/+1
| | | | | | | Fix copyright years. Fix URLs to point to new PRC site. Make sure guestfish(1) and guestfs(3) manpages reference the current list of tools.
* Improved version of virt-win-reg, supporting exporting and merging.Richard Jones2010-03-301-119/+303
|
* hivex: Add 'hivexsh' program (shell for navigating registry hives).Richard Jones2010-01-291-0/+1
|
* indent with spaces, not TABsJim Meyering2009-11-091-34/+34
| | | | | | | | | | | * HACKING: Expand indentation TABs. * configure.ac: Likewise. * daemon/daemon.h: Likewise. * daemon/guestfsd.c: Likewise. * fuse/guestmount.c: Likewise. * hivex/LICENSE: Likewise. * src/generator.ml: Likewise. * tools/virt-win-reg: Likewise.
* Support for Windows Registry.Richard Jones2009-10-291-0/+308
In hivex/: This mini-library allows us to extract Windows Registry binary files ("hives"). There are also two tools: hivexml converts a hive to a self-describing XML format. hivexget can be used to extract single subkeys from a hive. New tool: virt-win-reg. This is a wrapper around the library functionality allowing you to pull out data from the registries of Windows guests.