berrno be;
be.set_errno(save_errno);
Jmsg(jcr, M_ERROR, 0, _("Cannot create directory %s: ERR=%s\n"),
- dirpath, be.strerror());
+ dirpath, be.bstrerror());
fail = 1;
} else if (!S_ISDIR(stats.st_mode)) {
Jmsg(jcr, M_ERROR, 0, _("%s exists but is not a directory\n"), quote(dirpath));
/* Note, if we are restoring as NON-root, this may not be fatal */
berrno be;
Jmsg(jcr, M_ERROR, 0, _("Cannot change owner and/or group of %s: ERR=%s\n"),
- quote(dirpath), be.strerror());
+ quote(dirpath), be.bstrerror());
}
Dmsg0(300, "Chown done.\n");
if (cwd.do_chdir && chdir(basename_dir) < 0) {
berrno be;
Jmsg(jcr, M_ERROR, 0, _("Cannot chdir to directory, %s: ERR=%s\n"),
- quote(dirpath), be.strerror());
+ quote(dirpath), be.bstrerror());
umask(oldmask);
cleanup(&cwd);
return 1;
{
berrno be;
Jmsg(jcr, M_WARNING, 0, _("Cannot change owner and/or group of %s: ERR=%s\n"),
- quote(dirpath), be.strerror());
+ quote(dirpath), be.bstrerror());
}
}
if ((mode & ~S_IRWXUGO) && chmod(basename_dir, mode)) {
berrno be;
Jmsg(jcr, M_WARNING, 0, _("Cannot change permissions of %s: ERR=%s\n"),
- quote(dirpath), be.strerror());
+ quote(dirpath), be.bstrerror());
}
if (cleanup(&cwd)) {
if (chmod(dirpath, parent_mode)) {
berrno be;
Jmsg(jcr, M_WARNING, 0, _("Cannot change permissions of %s: ERR=%s\n"),
- quote(dirpath), be.strerror());
+ quote(dirpath), be.bstrerror());
}
}
} else {
) {
berrno be;
Jmsg(jcr, M_WARNING, 0, _("Cannot change owner and/or group of %s: ERR=%s\n"),
- quote(dirpath), be.strerror());
+ quote(dirpath), be.bstrerror());
}
if (chmod(dirpath, mode)) {
berrno be;
Jmsg(jcr, M_WARNING, 0, _("Cannot change permissions of %s: ERR=%s\n"),
- quote(dirpath), be.strerror());
+ quote(dirpath), be.bstrerror());
}
Dmsg2(300, "pathexists chmod mode=%o dir=%s\n", mode, dirpath);
}