mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-18 12:00:40 +02:00
Check for and report errors writing xorg.conf.new from Xorg -configure
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
(cherry picked from commit ac470dfb4f)
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
caf503aef1
commit
3284b03dca
1 changed files with 10 additions and 2 deletions
|
|
@ -758,7 +758,11 @@ DoConfigure(void)
|
|||
snprintf(filename, sizeof(filename), "%s%s" XF86CONFIGFILE ".new",
|
||||
home, addslash);
|
||||
|
||||
xf86writeConfigFile(filename, xf86config);
|
||||
if (xf86writeConfigFile(filename, xf86config) == 0) {
|
||||
xf86Msg(X_ERROR, "Unable to write config file: \"%s\": %s\n",
|
||||
filename, strerror(errno));
|
||||
goto bail;
|
||||
}
|
||||
|
||||
xf86DoConfigurePass1 = FALSE;
|
||||
/* Try to get DDC information filled in */
|
||||
|
|
@ -854,7 +858,11 @@ DoConfigure(void)
|
|||
(glp)xf86config->conf_screen_lst, (glp)ScreenPtr);
|
||||
}
|
||||
|
||||
xf86writeConfigFile(filename, xf86config);
|
||||
if (xf86writeConfigFile(filename, xf86config) == 0) {
|
||||
xf86Msg(X_ERROR, "Unable to write config file: \"%s\": %s\n",
|
||||
filename, strerror(errno));
|
||||
goto bail;
|
||||
}
|
||||
|
||||
ErrorF("\n");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue