kconfig: make parent directories for the saved .config as needed
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 10 May 2019 16:56:01 +0000 (01:56 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 27 Sep 2019 20:31:09 +0000 (22:31 +0200)
commit719358ae4ca9379a3678856a05ed71332f6fac56
treee362f9f8b080c37f768f0a49c286842dc86e90d1
parent42306a155d227ba90624c190a28344d61d566f46
kconfig: make parent directories for the saved .config as needed

With menuconfig / nconfig, users can input any file path from the
"Save" menu, but it fails if the parent directory does not exist.

Why not create the parent directory automatically. I think this is
a user-friendly behavior.

I changed the error messages in menuconfig / nconfig.

"Nonexistent directory" is no longer the most likely reason of the
failure. Perhaps, the user specified the existing directory, or
attempted to write to the location without write permission.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/confdata.c