Merge branch 'ew/mmap-failures'
Error message update. * ew/mmap-failures: xmmap: inform Linux users of tuning knobs on ENOMEM
This commit is contained in:
3
config.c
3
config.c
@ -3052,7 +3052,8 @@ int git_config_set_multivar_in_file_gently(const char *config_filename,
|
||||
if (contents == MAP_FAILED) {
|
||||
if (errno == ENODEV && S_ISDIR(st.st_mode))
|
||||
errno = EISDIR;
|
||||
error_errno(_("unable to mmap '%s'"), config_filename);
|
||||
error_errno(_("unable to mmap '%s'%s"),
|
||||
config_filename, mmap_os_err());
|
||||
ret = CONFIG_INVALID_FILE;
|
||||
contents = NULL;
|
||||
goto out_free;
|
||||
|
Reference in New Issue
Block a user