if (fname[0] == '\0') {
const char *configDir = os::getvncconfigdir();
if (configDir == nullptr) {
- fprintf(stderr, "Can't obtain VNC config directory\n");
+ fprintf(stderr, "Could not determine VNC config directory path\n");
exit(1);
}
if (os::mkdir_p(configDir, 0777) == -1) {
if (errno != EEXIST) {
- fprintf(stderr, "Could not create VNC config directory: %s\n", strerror(errno));
+ fprintf(stderr, "Could not create VNC config directory \"%s\": %s\n",
+ configDir, strerror(errno));
exit(1);
}
}
if (mkdir_p(logdir, 0755) == -1) {
if (errno != EEXIST) {
- syslog(LOG_CRIT, "Failure creating \"%s\": %s", logdir, strerror(errno));
+ syslog(LOG_CRIT, "Could not create VNC state directory \"%s\": %s", logdir, strerror(errno));
_exit(EX_OSERR);
}
}
const char* stateDir = os::getvncstatedir();
if (stateDir == nullptr)
- throw Exception(_("Could not obtain the state directory path"));
+ throw Exception(_("Could not determine VNC state directory path"));
char filepath[PATH_MAX];
snprintf(filepath, sizeof(filepath), "%s/%s", stateDir, SERVER_HISTORY);
const char* stateDir = os::getvncstatedir();
if (stateDir == nullptr)
- throw Exception(_("Could not obtain the state directory path"));
+ throw Exception(_("Could not determine VNC state directory path"));
char filepath[PATH_MAX];
snprintf(filepath, sizeof(filepath), "%s/%s", stateDir, SERVER_HISTORY);
const char* configDir = os::getvncconfigdir();
if (configDir == nullptr)
- throw Exception(_("Could not obtain the config directory path"));
+ throw Exception(_("Could not determine VNC config directory path"));
snprintf(filepath, sizeof(filepath), "%s/default.tigervnc", configDir);
} else {
const char* configDir = os::getvncconfigdir();
if (configDir == nullptr)
- throw Exception(_("Could not obtain the config directory path"));
+ throw Exception(_("Could not determine VNC config directory path"));
snprintf(filepath, sizeof(filepath), "%s/default.tigervnc", configDir);
} else {
if (os::mkdir_p(dir, 0755) == -1) {
if (errno != EEXIST)
- vlog.error(_("Could not create VNC config directory: %s"), strerror(errno));
+ vlog.error(_("Could not create VNC config directory \"%s\": %s"),
+ dir, strerror(errno));
}
dir = os::getvncdatadir();
if (os::mkdir_p(dir, 0755) == -1) {
if (errno != EEXIST)
- vlog.error(_("Could not create VNC data directory: %s"), strerror(errno));
+ vlog.error(_("Could not create VNC data directory \"%s\": %s"),
+ dir, strerror(errno));
}
dir = os::getvncstatedir();
if (os::mkdir_p(dir, 0755) == -1) {
if (errno != EEXIST)
- vlog.error(_("Could not create VNC state directory: %s"), strerror(errno));
+ vlog.error(_("Could not create VNC state directory \"%s\": %s"),
+ dir, strerror(errno));
}
}