mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 09:30:12 +01:00
Check for and report errors writing xorg.conf.new from Xorg -configure
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
This commit is contained in:
parent
bd713794ce
commit
ac470dfb4f
1 changed files with 10 additions and 2 deletions
|
|
@ -733,7 +733,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 */
|
||||
|
|
@ -829,7 +833,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