Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Ignore manywarnings.m4 / warnings.m4. | Richard W.M. Jones | 2009-08-17 | 1 | -0/+2 | |
| | ||||||
* | java: Small fix to Java bindings. | Richard W.M. Jones | 2009-08-17 | 1 | -1/+4 | |
| | | | | Missing declaration of local variable 'i'. | |||||
* | HACKING: Document make targets and ./configure --enable-gcc-warnings. | Richard W.M. Jones | 2009-08-17 | 1 | -0/+7 | |
| | ||||||
* | Remove redundant macro. | Richard W.M. Jones | 2009-08-17 | 1 | -2/+0 | |
| | ||||||
* | indent with spaces, not TABs | Jim Meyering | 2009-08-17 | 4 | -29/+29 | |
| | ||||||
* | daemon: enable -Werror and many gcc warnings when --enable-gcc-warnings | Jim Meyering | 2009-08-17 | 3 | -2/+66 | |
| | | | | | | | | | | * daemon/m4/gnulib-cache.m4: Add two modules: manywarnings, warnings. * daemon/configure.ac: Implement --enable-gcc-warnings, and selectively disable a few warning options that are either not useful or that provoke too many warnings for now. Define and AC_SUBST WARN_CFLAGS and WERROR_CFLAGS. * daemon/Makefile.am (guestfsd_CFLAGS): Use $(WARN_CFLAGS) and $(WERROR_CFLAGS), rather than just -Wall. | |||||
* | xattr.c: avoid warning about comparison between signed and unsigned | Jim Meyering | 2009-08-17 | 1 | -4/+6 | |
| | | | | * daemon/xattr.c (getxattrs): Use an unsigned index. | |||||
* | guestfsd: don't ignore failed write-to-socket | Jim Meyering | 2009-08-17 | 1 | -1/+1 | |
| | | | | | * daemon/proto.c (reply): Fix typo that would cause us to ignore failed write-to-socket. | |||||
* | daemon.h: avoid warning about possible noreturn function | Jim Meyering | 2009-08-17 | 1 | -1/+1 | |
| | | | | * daemon/daemon.h (main_loop): Use "noreturn" attribute. | |||||
* | sfdisk.c, fallocate.c: use a string literal as format | Jim Meyering | 2009-08-17 | 2 | -3/+3 | |
| | | | | | * daemon/fallocate.c (do_fallocate): Format was not a string literal. * daemon/sfdisk.c (sfdisk): Likewise. | |||||
* | wc, blockdev: avoid warnings about discarding "const" qualifiers | Jim Meyering | 2009-08-17 | 2 | -2/+2 | |
| | | | | | * daemon/wc.c (wc): Make "flag" param const. * daemon/blockdev.c (call_blockdev): Likewise, for "switc". | |||||
* | daemon/zero: don't ignore write and close errors | Jim Meyering | 2009-08-17 | 1 | -4/+14 | |
| | | | | * daemon/zero.c (do_zero): Detect write and close errors. | |||||
* | guestfsd.c: don't perform arithmetic on void pointers | Jim Meyering | 2009-08-17 | 1 | -2/+4 | |
| | | | | * daemon/guestfsd.c (xread, xwrite): Use char* pointers instead. | |||||
* | command.c: avoid shadowing a global function | Jim Meyering | 2009-08-17 | 1 | -4/+4 | |
| | | | | * daemon/command.c (do_sh_lines, do_sh): Do not shadow global "command". | |||||
* | avoid warning about old-style no-param function definition | Jim Meyering | 2009-08-17 | 2 | -3/+3 | |
| | | | | | * daemon/df.c (do_df, do_df_h): Add "void". * sync.c (do_sync): Likewise. | |||||
* | generator.ml: emit slightly prettier code | Jim Meyering | 2009-08-17 | 1 | -3/+3 | |
| | | | | * src/generator.ml: Emit a few omitted newlines. | |||||
* | python: avoid "_POSIX_C_SOURCE" redefinition warning | Jim Meyering | 2009-08-17 | 1 | -2/+2 | |
| | | | | | * src/generator.ml: Include <Python.h> *before* <stdio.h> to avoid redefinition warning about "_POSIX_C_SOURCE". | |||||
* | adjust const "**" pointers to avoid warnings | Jim Meyering | 2009-08-17 | 11 | -88/+97 | |
| | | | | | | Also, ... * src/generator.ml: Add DeviceList type, and propagate that change out to all calling/interface code. | |||||
* | test-tool: Recognize '-t timeout' as an option. | Richard Jones | 2009-08-16 | 1 | -1/+1 | |
| | ||||||
* | New commands: mkfs-b, mke2journal*, mke2fs-J* | Richard W.M. Jones | 2009-08-15 | 7 | -18/+304 | |
| | | | | | | | | | | mkfs-b: Pass the -b (blocksize) parameter to mkfs. mke2journal and friends: Lets you create external ext2 journals on devices. mke2fs-J and friends: Lets you create ext2/3/4 filesystems with external journals. | |||||
* | generator: Generate the UUIDs for tests randomly. | Richard W.M. Jones | 2009-08-15 | 1 | -18/+34 | |
| | | | | | Adds a uuidgen function which gets the random UUID from the uuid program. Uses this for tests. | |||||
* | Merge branch '226-elide' | Jim Meyering | 2009-08-14 | 1 | -12/+82 | |
|\ | ||||||
| * | generator.ml: don't emit unused functions | Jim Meyering | 2009-08-14 | 1 | -1/+9 | |
| | | | | | | | | | | * src/generator.ml: Use "rstructs_used" to emit definitions only for put_TYPE_list functions that are used. | |||||
| * | generator.ml: factor out a function | Jim Meyering | 2009-08-14 | 1 | -12/+16 | |
| | | | | | | | | * src/generator.ml (emit_put_list_function): New function. | |||||
| * | Work out which RStruct/RStructList structs are really used, and how. | Richard W.M. Jones | 2009-08-14 | 1 | -0/+58 | |
| | | ||||||
* | | build: avoid "make sytnax-check" failure | Jim Meyering | 2009-08-14 | 1 | -1/+1 | |
|/ | | | | * daemon/configure.ac: Change a leading TAB to 8 spaces. | |||||
* | guestfish: Add --selinux option. | Richard Jones | 2009-08-13 | 2 | -5/+14 | |
| | ||||||
* | Version 1.0.67.1.0.67 | Richard Jones | 2009-08-13 | 3 | -721/+759 | |
| | ||||||
* | tests: increase likelihood that heap abuse triggers failure | Jim Meyering | 2009-08-13 | 1 | -0/+3 | |
| | | | | | * regressions/Makefile.am (TESTS_ENVIRONMENT): Always set MALLOC_PERTURB_ to a random value in 1..255. | |||||
* | appliance: Remove /usr/sbin/tcpd - it's unreadable on RHEL 5.4. | Richard Jones | 2009-08-13 | 1 | -0/+1 | |
| | ||||||
* | appliance: Replace LANG=C with LC_ALL=C | Richard Jones | 2009-08-13 | 1 | -1/+1 | |
| | ||||||
* | umount: Enable device name translation for device parameter. | Richard Jones | 2009-08-13 | 1 | -3/+8 | |
| | ||||||
* | mount: Check mountpoints are absolute paths. | Richard Jones | 2009-08-13 | 1 | -0/+2 | |
| | ||||||
* | selinux: Don't fail if libselinux is not found. | Richard Jones | 2009-08-13 | 1 | -7/+3 | |
| | ||||||
* | Misc parameters which are String but should be Pathname. | Richard Jones | 2009-08-13 | 1 | -9/+9 | |
| | ||||||
* | In rmmountpoint, have to explicitly check for ABS_PATH (*not* NEED_ROOT). | Richard Jones | 2009-08-13 | 1 | -0/+3 | |
| | ||||||
* | inotify-add-watch does not need to explicitly check for ABS_PATH. | Richard Jones | 2009-08-13 | 1 | -1/+0 | |
| | ||||||
* | cp/cp-a/mv parameters marked as Pathname. | Richard Jones | 2009-08-13 | 2 | -7/+3 | |
| | ||||||
* | do_equal does not need to explicitly check for NEED_ROOT/ABS_PATH. | Richard Jones | 2009-08-13 | 1 | -4/+0 | |
| | ||||||
* | generator.ml: convert leading TABs to spaces | Jim Meyering | 2009-08-13 | 1 | -4/+4 | |
| | ||||||
* | sfdisk: guard against buffer overflow | Jim Meyering | 2009-08-13 | 1 | -2/+15 | |
| | | | | | * daemon/sfdisk.c (sfdisk): Don't let outrageous "extra_flag" or "device" strings overflow a fixed-size buffer. | |||||
* | do_umount: don't use RESOLVE_DEVICE anymore | Jim Meyering | 2009-08-13 | 1 | -13/+9 | |
| | | | | | * daemon/mount.c (do_umount): Don't use RESOLVE_DEVICE here, now that the caller always invokes REQUIRE_ROOT_OR_RESOLVE_DEVICE. | |||||
* | generator.ml: factor out "pr_args n" function | Jim Meyering | 2009-08-13 | 1 | -4/+7 | |
| | ||||||
* | generator.ml: finish adding Dev_or_Path support | Jim Meyering | 2009-08-13 | 3 | -35/+35 | |
| | | | | | | | | | | * src/generator.ml: Update all rules to handle Dev_or_Path. (the above changes to generator.ml are mostly mechanical) Emit a use of REQUIRE_ROOT_OR_RESOLVE_DEVICE. * daemon/upload.c (do_download): Remove use of REQUIRE_ROOT_OR_RESOLVE_DEVICE, now that it's automatically done in calling code. * daemon/file.c (do_file): Likewise. | |||||
* | generator.ml: add type: Dev_or_Path | Jim Meyering | 2009-08-13 | 1 | -2/+3 | |
| | | | | * src/generator.ml (file, download): Use it. | |||||
* | generator.ml: constify do_mkdtemp | Jim Meyering | 2009-08-13 | 2 | -21/+10 | |
| | | | | | * daemon/dir.c (do_mkdtemp): Rewrite for a "const" parameter. * src/generator.ml (mkdtemp): Declare parameter to be of type Pathname. | |||||
* | generator.ml: move String/Device decls "down" to definition | Jim Meyering | 2009-08-13 | 1 | -5/+5 | |
| | ||||||
* | generator.ml: use new "Pathname" designation | Jim Meyering | 2009-08-13 | 43 | -339/+206 | |
| | | | | | | | | | | Nearly every file-related function in daemons/*.c is affected: Remove this pair of statements from each affected do_* function: - NEED_ROOT (return -1); - ABS_PATH (dir, return -1); and change the type of the corresponding parameter to "const char *". * src/generator.ml: Emit NEED_ROOT just once, even when there are two or more Pathname args. | |||||
* | generator.ml: new type, "Pathname" | Jim Meyering | 2009-08-13 | 1 | -93/+111 | |
| | | | | | | | | | | * src/generator.ml: Emit NEED_ROOT and ABS_PATH into generated stubs.c, rather than requiring they be added manually at the start of each and every do_* function that operates on a "path" parameter. Update grammar: Pathname is just a String, with the above exception. Do not update augeas "path" parameters, since they are not file names, but rather ":"-separated search paths. Except aug_init, for which "path" *is* a file name. | |||||
* | generator.ml: emit "const char *" for Device and String params | Jim Meyering | 2009-08-13 | 1 | -7/+5 | |
| | | | | | | * src/generator.ml: Emit "const char *", not "char *" for Device and String params, now that the non-const code is hoisted into the calling code in stubs.c. |