| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
files (RHBZ#788641).
(cherry picked from commit 7c21e49c2c83092e9fd5f40c43a03c764a6d3663)
|
|
|
|
|
|
|
|
| |
If the upload fails, this means we don't leave a partially
written file.
Also add a test for the edit command.
(cherry picked from commit ddae5abf80f65fc149eec253f14f073d397b49c2)
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit ca80e4490463d646de4504fc2bcb4e4a722bedb8)
|
|
|
|
| |
Update all copyright dates to 2012.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Be more consistent in allowing the user to override use of the
temporary directory by specifying $TMPDIR. Also prefer P_tmpdir
macro (defined in <stdio.h>) if that is defined, rather than
hard-coding "/tmp" for the fallback location.
|
|
|
|
|
|
| |
The guestfish-only commands such as 'alloc' and 'edit' are
now generated from one place in the generator instead of being
spread around ad-hoc in the C code.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The guestfs_write call can be used to create small files with
arbitrary 8 bit content, including \0 bytes.
This replaces and deprecates write-file, which cannot be modified
to use BufferIn because of an unfortunate choice in the ABI: the
size parameter to write-file, if zero, means that the daemon tries
to calculate the length of the buffer using strlen. However this
fails if we pass a zero-length buffer using BufferIn because then
the daemon tries to do strlen on a (really) zero length buffer, not
even containing a terminating \0 character, thus segfaulting.
|
|
|
|
|
| |
git grep -l 'strncmp *([^=]*== *0'|xargs \
perl -pi -e 's/\bstrncmp( *\(.*?\)) *== *0\b/STREQLEN$1/g'
|
|
|
|
|
| |
git grep -l 'strcasecmp *([^=]*== *0'| xargs \
perl -pi -e 's/\bstrcasecmp( *\(.*?\)) *== *0/STRCASEEQ$1/'
|
|
|
|
|
| |
* fish/edit.c (load_file): Change type of param from int to size_t.
(do_edit): Adjust caller.
|
| |
|
|
|
|
|
|
|
|
| |
Use commands such as:
more /etc/passwd
less /etc/fstab
These commands are specific to guestfish.
|
| |
|
|
|