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 'setcon', 'getcon' commands to set and get the SELinux context.
[libguestfs.git]
/
daemon
/
swap.c
diff --git
a/daemon/swap.c
b/daemon/swap.c
index
db93e57
..
3ebdef6
100644
(file)
--- a/
daemon/swap.c
+++ b/
daemon/swap.c
@@
-34,9
+34,9
@@
mkswap (char *device, const char *flag, const char *value)
int r;
if (!flag)
int r;
if (!flag)
- r = command (NULL, &err, "/sbin/mkswap", device, NULL);
+ r = command (NULL, &err, "/sbin/mkswap",
"-f",
device, NULL);
else
else
- r = command (NULL, &err, "/sbin/mkswap", flag, value, device, NULL);
+ r = command (NULL, &err, "/sbin/mkswap",
"-f",
flag, value, device, NULL);
if (r == -1) {
reply_with_error ("mkswap: %s", err);
if (r == -1) {
reply_with_error ("mkswap: %s", err);