long len = strlen(src);
if (len+strlen(dest)+1 > size)
- error_exit("'%s%s' > %ld bytes", src, (long)size);
+ error_exit("'%s%s' > %ld bytes", dest, src, (long)size);
strcpy(dest+len, src);
}
if (getuid()) {
if (TT.okuser) TT.okuser = 0;
else {
- error_msg("'%s' not user mountable in fstab");
+ error_msg("'%s' not user mountable in fstab", dev);
+
return;
}
}
if (!value) value = split_key(key);
if ((toys.optflags & FLAG_w) && !value) {
- error_msg("'%s' not key=value");
+ error_msg("'%s' not key=value", key);
return;
}
if (((toys.optflags&FLAG_n) ? lstat : stat)(dest, &buf)
|| !S_ISDIR(buf.st_mode))
{
- if (toys.optc>1) error_exit("'%s' not a directory");
+ if (toys.optc>1) error_exit("'%s' not a directory", dest);
buf.st_mode = 0;
}