summaryrefslogtreecommitdiffstats
path: root/fish/edit.c
Commit message (Collapse)AuthorAgeFilesLines
* fish: Change 'int argc' to 'size_t argc' throughout.Richard W.M. Jones2010-10-211-1/+1
|
* Allow $TMPDIR to override most temporary directory uses.Richard W.M. Jones2010-09-241-1/+1
| | | | | | | 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.
* generator: Generate guestfish-only commands.Richard W.M. Jones2010-09-181-1/+1
| | | | | | 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.
* fish: Fix 'edit' command to work with any file.Richard Jones2010-09-091-67/+19
|
* New API: write for creating files with fixed content (RHBZ#501889).Richard Jones2010-05-201-1/+1
| | | | | | | | | | | | | 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.
* change strncmp() == 0 to STREQLEN()Jim Meyering2009-11-091-1/+1
| | | | | git grep -l 'strncmp *([^=]*== *0'|xargs \ perl -pi -e 's/\bstrncmp( *\(.*?\)) *== *0\b/STREQLEN$1/g'
* convert uses of strcasecmp to STRCASEEQJim Meyering2009-11-091-2/+2
| | | | | git grep -l 'strcasecmp *([^=]*== *0'| xargs \ perl -pi -e 's/\bstrcasecmp( *\(.*?\)) *== *0/STRCASEEQ$1/'
* edit.c: avoid warning about signed/unsigned comparisonJim Meyering2009-08-211-2/+3
| | | | | * fish/edit.c (load_file): Change type of param from int to size_t. (do_edit): Adjust caller.
* remove trailing blanksJim Meyering2009-07-031-1/+1
|
* Implement "more" and "less" commands in guestfish.Richard W.M. Jones2009-06-291-18/+0
| | | | | | | | Use commands such as: more /etc/passwd less /etc/fstab These commands are specific to guestfish.
* Gettextize the source, make library strings translatable.Richard Jones2009-05-211-1/+1
|
* 'guestfish edit' commands and several bugfixes.Richard Jones2009-04-151-0/+185