summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* hivexsh: Change handling of prompt argument to rl_gets()Richard Jones2010-02-041-9/+10
| | | | | | | | Make the result of isatty into a global variable (is_tty). Change the rl_gets() function so it takes the prompt string instead of a "display prompt?" flag. rl_gets() then consults the global to find out if it should display the prompt at all.
* Document that this flag is clear for default keys.Richard Jones2010-02-041-1/+2
|
* Misc documentation and gitignore update.Richard Jones2010-02-042-1/+4
|
* Move htole*/le*toh macros into a separate header file.Richard Jones2010-02-043-42/+93
| | | | This allows us to reuse these macros in hivexsh later.
* Add Marathi translations (RHBZ#561671).Sandeep Shedmake2010-02-041-0/+2159
|
* Polish translations (RHBZ#502533).Piotr Drąg2010-02-021-31/+43
|
* Update PO files.Richard Jones2010-02-026-333/+835
|
* Add Gujarti translations (Sweta Kothari) (RHBZ#560918).Richard Jones2010-02-021-0/+2036
|
* Update Oriya translations (thanks Manoj Kumar Giri) (RHBZ#559498).Richard Jones2010-02-011-22/+15
|
* hivex: Reimplement hivexget as a simple shell script.Richard Jones2010-01-294-295/+45
| | | | | | hivexget is currently a large C program. Now that we have hivexsh (the shell) we can reimplement hivexget as a simple bash script that calls out to hivexsh.
* hivex: Add 'hivexsh' program (shell for navigating registry hives).Richard Jones2010-01-299-6/+997
|
* Set locale in C programs so l10n works (RHBZ#559962).Richard Jones2010-01-299-9/+55
| | | | | | | | | | | | | | | This commit adds the calls to setlocale &c to all of the current C programs. It also adds l10n support to hivexget and hivexml which lacked them previously. To test this, try: LANG=pa_IN.UTF-8 guestfish --cmd-help (You can only do this test after installing the package, or at least the 'pa.mo' mo-file in the correct place).
* Another unreadable file: /var/log/yum.logRichard Jones2010-01-291-0/+1
|
* Update PO files.Richard Jones2010-01-295-1935/+1993
|
* Add Tamil translation (RHBZ#559877) (thanks to I.Felix)Richard Jones2010-01-291-0/+2652
|
* Update Punjabi translation (RHBZ#559480) (thanks Jaswinder Singh)Richard Jones2010-01-291-113/+299
|
* Fix regressions/rhbz557655.sh when debugging is enabled (v2).Richard Jones2010-01-294-14/+24
| | | | | | | | The previous fix didn't cope with ordinary warnings emitted by qemu (eg. "open /dev/kvm: No such file or directory"). This is a hopefully more complete fix for the problem. See also commit 3cd7ce75f1ce5048a4d9f6aeaf66aff3194e1096.
* Fix regressions/rhbz557655.sh when debugging is enabled.Richard Jones2010-01-281-0/+1
| | | | | | | | | | | | The regression test for RHBZ#557655 would fail if debugging was enabled, because debug output would get mixed up with the test output. To reproduce the error do: LIBGUESTFS_DEBUG=1 make -C regressions TESTS=rhbz557655.sh check This commit disables debug for just this test.
* Implement 'vgrename' and 'lvrename' APIs.Richard Jones2010-01-283-1/+65
|
* Version 1.0.82.1.0.82Richard Jones2010-01-286-401/+451
|
* hivex: Const-correctness fix on header_checksum (thanks Jim Meyering).Richard Jones2010-01-281-1/+1
|
* hivex: Update some previously unknown nk-record fields.Richard Jones2010-01-281-5/+11
| | | | | | Update these fields with what we found out from reverse engineering the file. Also bring the unknownX field names into line with visualizer.ml.
* hivex: Fix calculation of block size for vk data blocks.Richard Jones2010-01-281-1/+1
|
* hivex: Display incorrect block size as unsigned in an error message.Richard Jones2010-01-281-1/+1
|
* hivex: display bad block offset in hexRichard Jones2010-01-281-1/+1
|
* hivex: hive type in vk-record is an unsigned 32 bit intRichard Jones2010-01-281-1/+1
|
* hivex: Add missing le32toh conversion around field access.Richard Jones2010-01-281-3/+3
| | | | | This was missing. It only worked because we test on a little endian platform.
* hivex: Clarify some more fields.Richard Jones2010-01-281-2/+3
| | | | Taken from sentinelchicken.com documentation.
* hivex: Modify children/values functions to return intermediate blocks.Richard Jones2010-01-281-70/+168
| | | | | | | | | | | Modify the functions that return child subnodes and values so they can also be used to return a list of the intermediate blocks. This is so we can delete those intermediate blocks (in a later commit). We also introduce an offset_list structure which is used for collecting lists of offsets, ie. lists of nodes, values or blocks. Note that this commit should not change the semantics of the code.
* hivex: Add value_any callback to the visitor.Richard Jones2010-01-283-83/+101
| | | | | | | | | | The visitor currently contains lots of value_* callbacks, such as value_string which is called back when the value has type string. This is fine but it makes it complicated to deal with the case where you just want to see 'a value', and don't care about its type. The value_any callback allows visitors to see values generically.
* hivex: Move header checksum code into a function.Richard Jones2010-01-281-8/+16
| | | | This function can be reused later.
* hivex: page 'offset_next' field is really 'page_size'.Richard Jones2010-01-281-8/+8
| | | | | | | | The documentation, as usual, is contradictory. However this field is definitely the page size in all observed registries. Furthermore the following field marked 'unknown' is always zero, although this contradicts what the sentinelchicken.com paper says.
* hivex: Collect more statistics about registries.Richard Jones2010-01-281-20/+31
|
* hivex: Store filename in hive handle.Richard Jones2010-01-281-0/+7
|
* Added Oriya translations (RHBZ#559498).Richard Jones2010-01-281-0/+2005
| | | | Translation by Manoj Kumar Giri.
* supermin: Add special case for libgcc_s-*.so.NRichard Jones2010-01-281-0/+4
| | | | | | Because this file contains the GCC version and a date, it frequently changes on the host. Create a special case so that this file is matched using a wildcard for the version/date part of the name.
* Added translations for Punjabi (pa-IN) (RHBZ#559480).Richard Jones2010-01-284-66/+1928
| | | | | | Translated by Jaswinder Singh. Also updated pot files.
* supermin: Prevent multilib corruption (RHBZ#558593).Richard Jones2010-01-274-13/+40
| | | | | | | | | | | | | | | | | | | On some combination of installing, upgrading and removing the base libguestfs package on x86_64, multilib can corrupt libguestfs by leaving a copy of /usr/bin/libguestfs-supermin-helper around which references the wrong architecture (usually, contains links to the i386-based appliance, when the x86_64 appliance should be constructed). This commit changes libguestfs-supermin-helper so that the script is the same on all architectures. Instead, the library passes the differences to the script (eg. $host_cpu). Because the i386 and x86_64 libraries should be at different locations (/usr/lib vs /usr/lib64) this should prevent multilib from screwing things up. Related links: https://bugzilla.redhat.com/show_bug.cgi?id=558593 http://rwmj.wordpress.com/2009/11/16/please-someone-shoot-multilib/#content https://bugzilla.redhat.com/show_bug.cgi?id=235752
* Added Telugu translations (RHBZ#559237).Richard Jones2010-01-273-722/+2847
| | | | Also ran 'make -C po update-po' to update the POT file.
* supermin: Ignore more unreadable files found on RHEL 6.Richard Jones2010-01-251-0/+17
|
* Sync to latest Gnulib.Richard Jones2010-01-251-0/+0
|
* guestfish: Use xstrtol to parse integers (RHBZ#557655).Richard Jones2010-01-258-5/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current code uses atoi to parse the generator Int type and atoll to parse the generator Int64 type. The problem with the ato* functions is that they don't cope with errors very well, and they cannot parse numbers that begin with 0.. or 0x.. for octal and hexadecimal respectively. This replaces the atoi call with a call to Gnulib xstrtol and the atoll call with a call to Gnulib xstrtoll. The generated code looks like this for all Int arguments: { strtol_error xerr; long r; xerr = xstrtol (argv[0], NULL, 0, &r, ""); if (xerr != LONGINT_OK) { fprintf (stderr, _("%s: %s: invalid integer parameter (%s returned %d)\n"), cmd, "memsize", "xstrtol", xerr); return -1; } /* The Int type in the generator is a signed 31 bit int. */ if (r < (-(2LL<<30)) || r > ((2LL<<30)-1)) { fprintf (stderr, _("%s: %s: integer out of range\n"), cmd, "memsize"); return -1; } /* The check above should ensure this assignment does not overflow. */ memsize = r; } and like this for all Int64 arguments (note we don't need the range check for these): { strtol_error xerr; long long r; xerr = xstrtoll (argv[1], NULL, 0, &r, ""); if (xerr != LONGINT_OK) { fprintf (stderr, _("%s: %s: invalid integer parameter (%s returned %d)\n"), cmd, "size", "xstrtoll", xerr); return -1; } size = r; } Note this also fixes an unrelated bug in guestfish handling of RBufferOut. We were using 'fwrite' without checking the return value, and this could have caused silent failures, eg. in the case where there was not enough disk space to store the resulting file, or even if the program was interrupted (but continued) during the write. Replace this with Gnulib 'full-write', and check the return value and report errors.
* Add 'filesize' call.Richard Jones2010-01-253-1/+31
| | | | | Returns the size of a file. You can already do this with 'stat', but this call is good for scripting.
* Missing crc kernel module on RHEL 6 / Linux 2.6.32 (fixes RHBZ#557195)Richard Jones2010-01-211-2/+3
|
* hivex: Various improvements in header parsing, thanks to better documentation.Richard Jones2010-01-151-22/+74
|
* hivex: Print header fields. Print all offsets in hex (in debug output).Richard Jones2010-01-151-16/+26
|
* hivex: Reenable checksum calculations, but don't check result.Richard Jones2010-01-151-3/+4
|
* hivex: Update documentation.Richard Jones2010-01-151-0/+4
|
* hivex: Send all debug messages to stderr.Richard Jones2010-01-141-55/+55
|
* hivex: Remove stray debugging message.Richard Jones2010-01-141-1/+0
|