git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add documentation for SELinux configuration.
[libguestfs.git]
/
fish
/
edit.c
diff --git
a/fish/edit.c
b/fish/edit.c
index
5519bb9
..
3e6973e
100644
(file)
--- a/
fish/edit.c
+++ b/
fish/edit.c
@@
-1,5
+1,5
@@
/* guestfish - the filesystem interactive shell
/* guestfish - the filesystem interactive shell
- * Copyright (C) 2009 Red Hat Inc.
+ * Copyright (C) 2009 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-29,24
+29,6
@@
/* guestfish edit command, suggested by Ján Ondrej, implemented by RWMJ */
/* guestfish edit command, suggested by Ján Ondrej, implemented by RWMJ */
-static int
-xwrite (int fd, const void *buf, size_t len)
-{
- int r;
-
- while (len > 0) {
- r = write (fd, buf, len);
- if (r == -1) {
- perror ("write");
- return -1;
- }
- buf += r;
- len -= r;
- }
-
- return 0;
-}
-
static char *
load_file (const char *filename, int *len_r)
{
static char *
load_file (const char *filename, int *len_r)
{