startup: check that a backup directory is valid also when backups are off
When the user switches backups on later (with M-B in the ^O menu), the specified folder should have been checked for validity. This fixes https://savannah.gnu.org/bugs/?55423. Bug existed since the check for a valid backup directory was introduced in version 2.8.7, commit 751e7f0f.
Этот коммит содержится в:
родитель
0ae80ce362
Коммит
e1a6f58da6
@ -2449,9 +2449,9 @@ int main(int argc, char **argv)
|
|||||||
#endif /* ENABLE_HISTORIES */
|
#endif /* ENABLE_HISTORIES */
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* If backups are enabled and a backup directory was specified, make sure
|
/* If a backup directory was specified and we're not in restricted mode,
|
||||||
* the path exists and is a folder, so backup files can be saved there. */
|
* verify it is an existing folder, so backup files can be saved there. */
|
||||||
if (ISSET(BACKUP_FILE) && backup_dir != NULL)
|
if (backup_dir != NULL && !ISSET(RESTRICTED))
|
||||||
init_backup_dir();
|
init_backup_dir();
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_OPERATINGDIR
|
#ifdef ENABLE_OPERATINGDIR
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user