summaryrefslogtreecommitdiffstats
path: root/cat/virt-ls.c
Commit message (Collapse)AuthorAgeFilesLines
* syntax: Remove definitions of O_CLOEXEC, except in examples (thanks Jim ↵Richard W.M. Jones2012-09-171-4/+0
| | | | | | | Meyering). The gnulib <fcntl.h> replacement header will now define this symbol if it's not defined already.
* guestfs_lstatlist, guestfs_lxattrlist: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-167/+8
| | | | | Note that the code to do this was already in virt-ls, so this is change is mostly just moving the code into the core library.
* guestfs_find: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-52/+9
| | | | | This also reimplements the virt-ls -R option to use the replacement guestfs_find API, which is simpler (though actually less efficient).
* virt-ls: Don't initialize path = NULL.Richard W.M. Jones2012-05-171-1/+1
|
* virt-ls: Fix --checksum option (RHBZ#822490).Richard W.M. Jones2012-05-171-1/+2
|
* Use O_CLOEXEC / SOCK_CLOEXEC for almost all file descriptors.Richard W.M. Jones2012-03-141-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | The presumption is that all file descriptors should be created with the close-on-exec flag set. The only exception are file descriptors that we want passed through to exec'd subprocesses (mainly pipes and stdin/stdout/stderr). For open calls, we pass O_CLOEXEC as an extra flag, eg: fd = open ("foo", O_RDONLY|O_CLOEXEC); This is a Linux-ism, but using a macro we can easily make it portable. For sockets, similarly: sock = socket (..., SOCK_STREAM|SOCK_CLOEXEC, ...); For accepted sockets, we use the Linux accept4 system call which allows flags to be supplied, but we use the Gnulib 'accept4' module to make this portable. For dup, dup2, we use the Linux dup3 system call, and the Gnulib modules 'dup3' and 'cloexec'.
* Tempus fugit.Richard W.M. Jones2012-01-181-2/+2
| | | | Update all copyright dates to 2012.
* fish options parsing: Allow add_drives to be called multiple times.Richard W.M. Jones2012-01-181-3/+2
| | | | | | Ensure that the drv structure is always zeroed on allocation. Don't leak old drv->device when add_drives is called multiple times.
* Update FSF address.Matthew Booth2011-11-081-1/+1
|
* virt-ls: Add virt-ls -lR option for complex file iteration.Richard W.M. Jones2011-06-041-9/+794
|
* virt-ls: Refactor mode selection code.Richard W.M. Jones2011-06-041-77/+123
| | | | This is just code motion.
* virt-ls: Small fix for output of --help option.Richard W.M. Jones2011-06-041-1/+1
|
* Add more missing include directives.Jim Meyering2011-04-131-1/+3
| | | | | | * cat/virt-cat.c: Include string.h and libintl.h. * cat/virt-filesystems.c: Likewise. * cat/virt-ls.c: Likewise.
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-071-0/+1
| | | | Fix required by gcc 4.6.0.
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-031-0/+2
| | | | | | The other programs have the variable, but the flag is not enabled either because it doesn't make sense or because the implications are not well understood.
* Remove several unused local variables.Richard W.M. Jones2010-12-101-1/+0
| | | | (Revealed by compiling under Debian where this is a warning).
* cat: Remove some unused local variables in virt-cat.c and virt-ls.c.Richard W.M. Jones2010-12-091-2/+0
|
* ls: Rewrite virt-ls in C.Richard W.M. Jones2010-11-231-0/+348