summaryrefslogtreecommitdiffstats
path: root/daemon/labels.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/labels.c')
-rw-r--r--daemon/labels.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/daemon/labels.c b/daemon/labels.c
index 5c59a4c5..ead6b46b 100644
--- a/daemon/labels.c
+++ b/daemon/labels.c
@@ -27,6 +27,9 @@
#include "actions.h"
#include "optgroups.h"
+GUESTFSD_EXT_CMD(str_e2label, e2label);
+GUESTFSD_EXT_CMD(str_ntfslabel, ntfslabel);
+
static int
e2label (const char *device, const char *label)
{
@@ -39,7 +42,7 @@ e2label (const char *device, const char *label)
return -1;
}
- r = command (NULL, &err, "e2label", device, label, NULL);
+ r = command (NULL, &err, str_e2label, device, label, NULL);
if (r == -1) {
reply_with_error ("%s", err);
free (err);
@@ -60,7 +63,7 @@ ntfslabel (const char *device, const char *label)
* characters and return an error. This is not so easy since we
* don't have the required libraries.
*/
- r = command (NULL, &err, "ntfslabel", device, label, NULL);
+ r = command (NULL, &err, str_ntfslabel, device, label, NULL);
if (r == -1) {
reply_with_error ("%s", err);
free (err);