git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Resync specfile to Fedora RR.
[libguestfs.git]
/
fish
/
alloc.c
diff --git
a/fish/alloc.c
b/fish/alloc.c
index
8979acf
..
594d0a5
100644
(file)
--- a/
fish/alloc.c
+++ b/
fish/alloc.c
@@
-30,7
+30,7
@@
static int parse_size (const char *str, off_t *size_rtn);
int
static int parse_size (const char *str, off_t *size_rtn);
int
-do_alloc (int argc, char *argv[])
+do_alloc (
const char *cmd,
int argc, char *argv[])
{
off_t size;
int fd;
{
off_t size;
int fd;
@@
-48,7
+48,7
@@
do_alloc (int argc, char *argv[])
return -1;
}
return -1;
}
- fd = open (argv[0], O_WRONLY|O_CREAT|O_NOCTTY|O_
NONBLOCK|O_
TRUNC, 0666);
+ fd = open (argv[0], O_WRONLY|O_CREAT|O_NOCTTY|O_TRUNC, 0666);
if (fd == -1) {
perror (argv[0]);
return -1;
if (fd == -1) {
perror (argv[0]);
return -1;