- NEED_ROOT (-1);
- ABS_PATH (root, -1);
- IS_DEVICE (device, -1);
-
- len = strlen (root) + 64;
- buf = malloc (len);
- if (!buf) {
- reply_with_perror ("malloc");
+ if (asprintf_nowarn (&buf, "--root-directory=%R", root) == -1) {
+ reply_with_perror ("asprintf");