summaryrefslogtreecommitdiffstats
path: root/daemon/file.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-031-9/+9
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* Pass '-z' parameter to 'file' command so it looks inside compressed files.Richard Jones2009-07-281-1/+1
| | | | Also we deprecate the old 'zfile' command.
* Replace shell_quote function with %Q and %R printf specifiers.Richard Jones2009-07-281-14/+10
| | | | | | | %Q => simple shell quoted string %R => path will be prefixed by /sysroot eg. snprintf (cmd, sizeof cmd, "cat %R", path); system (cmd);
* Fix typo in error message.Richard Jones2009-07-221-1/+1
|
* Generator: Implement RBufferOut and "read-file" call.Richard W.M. Jones2009-07-211-0/+59
| | | | | | | | | This commit implements the RBufferOut type for returning arbitrary 8 bit data from calls. We also implement the guestfs_read_file call to read a whole file that can contain any 8 bit content, but up to a limit of ~ 2 MB.
* Make /sysroot path configurable.Richard Jones2009-07-181-6/+6
| | | | | | | | | Currently /sysroot is hard-coded throughout the daemon code. This patch turns the path into a variable so that we can change it in future, for example to allow standalone mode to be implemented. This patch was tested by running all the C API tests successfully.
* Implement new 'zfile' command, to show file type inside compressed files.Richard Jones2009-07-131-0/+60
|
* remove trailing blanksJim Meyering2009-07-031-1/+1
|
* Check return value from close() call.Richard Jones2009-06-221-1/+5
|
* In the daemon, change all const char * parameters to char *.Richard Jones2009-06-101-10/+10
|
* Fix missing futimens bug.Richard Jones2009-05-061-1/+7
|
* Use AC_GNU_SOURCE in daemon. Don't need _GNU_SOURCE in C files any more.Richard W.M. Jones2009-04-231-2/+0
|
* Implement NEED_ROOT_OR_IS_DEVICE macro.Richard Jones2009-04-191-1/+1
|
* 'guestfish edit' commands and several bugfixes.Richard Jones2009-04-151-2/+2
|
* Fix 'file(1)' command to work on /dev devices.Richard Jones2009-04-141-10/+15
|
* Added file(1) command.Richard Jones2009-04-131-0/+49
|
* Added test suite.Richard Jones2009-04-111-0/+74
|
* New commands: rm rmdir rm-rf mkdir mkdir-p chmod chownRichard Jones2009-04-101-0/+60
|
* Definition and implementation of new guestfs_read_lines API call.Richard Jones2009-04-081-1/+53
|
* Implementations of 'cat', 'ls', and some cleanups.Richard Jones2009-04-061-9/+69
|
* Implement RString and RStringList return types.Richard Jones2009-04-041-0/+7
| | | | | - implement 'll' command. - outlines for 'ls' and 'cat' commands.
* Implemented 'mount' and 'touch' commands.Richard Jones2009-04-031-0/+63