char *mp;
char *error;
+ IS_DEVICE (device, -1);
+
is_root = strcmp (mountpoint, "/") == 0;
if (!root_mounted && !is_root) {
char *buf;
char *err;
- if (strncmp (pathordevice, "/dev/", 5) == 0)
- buf = (char *) pathordevice;
- else {
+ if (strncmp (pathordevice, "/dev/", 5) == 0) {
+ buf = pathordevice;
+ IS_DEVICE (buf, -1);
+ } else {
len = strlen (pathordevice) + 9;
freeit = 1;
buf = malloc (len);