xrdp: add log when failed to open keymap file
This commit is contained in:
parent
520798a782
commit
f9573e9908
@ -287,8 +287,8 @@ int km_load_file(const char *filename, struct xrdp_keymap *keymap)
|
||||
{
|
||||
int fd;
|
||||
|
||||
fd = g_file_open(filename);
|
||||
LOG(LOG_LEVEL_INFO, "Loading keymap file %s", filename);
|
||||
fd = g_file_open(filename);
|
||||
|
||||
if (fd != -1)
|
||||
{
|
||||
@ -306,6 +306,7 @@ int km_load_file(const char *filename, struct xrdp_keymap *keymap)
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(LOG_LEVEL_ERROR, "Error loading keymap file %s (%s)", filename, g_get_strerror());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user