char *mp;
char *error;
- ABS_PATH (mountpoint, 0, return -1);
+ ABS_PATH (mountpoint, , return -1);
is_root = STREQ (mountpoint, "/");
if (is_root)
root_mounted = 1;
+ free (error);
return 0;
}
}
if (is_dev)
- RESOLVE_DEVICE (buf, 0, { free (buf); return -1; });
+ RESOLVE_DEVICE (buf, , { free (buf); return -1; });
r = command (NULL, &err, "umount", buf, NULL);
free (buf);
}
buf = sysroot_path (file);
- if (!file) {
+ if (!buf) {
reply_with_perror ("malloc");
free (mp);
return -1;
return -1;
}
+ free (error);
return 0;
}
int r;
/* NEED_ROOT (return -1); - we don't want this test for this call. */
- ABS_PATH (path, 0, return -1);
+ ABS_PATH (path, , return -1);
CHROOT_IN;
r = mkdir (path, 0777);
int r;
/* NEED_ROOT (return -1); - we don't want this test for this call. */
- ABS_PATH (path, 0, return -1);
+ ABS_PATH (path, , return -1);
CHROOT_IN;
r = rmdir (path);