diff options
Diffstat (limited to 'daemon/link.c')
-rw-r--r-- | daemon/link.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/daemon/link.c b/daemon/link.c index 4536f007..6abe3ca8 100644 --- a/daemon/link.c +++ b/daemon/link.c @@ -28,6 +28,8 @@ #include "daemon.h" #include "actions.h" +GUESTFSD_EXT_CMD(str_ln, ln); + char * do_readlink (const char *path) { @@ -132,11 +134,11 @@ _link (const char *flag, int symbolic, const char *target, const char *linkname) if (flag) r = command (NULL, &err, - "ln", flag, "--", /* target could begin with '-' */ + str_ln, flag, "--", /* target could begin with '-' */ buf_target ? : target, buf_linkname, NULL); else r = command (NULL, &err, - "ln", "--", + str_ln, "--", buf_target ? : target, buf_linkname, NULL); free (buf_linkname); free (buf_target); |