Masahiro Yamada
ceb7f3296e
kconfig: do not accept a directory for configuration output
...
Currently, conf_write() can be called with a directory name instead
of a file name. As far as I see, this can happen for menuconfig,
nconfig, gconfig.
If it is given with a directory path, conf_write() kindly appends
getenv("KCONFIG_CONFIG"), but this ends up with hacky dir/basename
handling, and screwed up in corner-cases like "what if KCONFIG_CONFIG
is an absolute path?" as discussed before:
https://patchwork.kernel.org/patch/9910037/
Since conf_write() is already messed up, I'd say "do not do it".
Please pass a file path all the time. If a directory path is specified
for the configuration output, conf_write() will simply error out.
Now that the tmp file is created in the same directory as the .config,
the previously reported "what if KCONFIG_CONFIG points to a different
file system?" has been solved.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Cc: Nicolas Porcel <nicolasporcel06@gmail.com >
2019-05-11 02:14:27 +09:00
..
2019-02-13 08:07:31 +01:00
2018-12-01 23:13:14 +09:00
2019-03-28 23:46:56 +09:00
2019-02-28 11:40:48 -06:00
2019-03-09 09:06:15 -08:00
2019-03-10 17:48:21 -07:00
2018-05-17 22:43:35 +09:00
2019-05-11 02:14:27 +09:00
2017-03-28 16:16:52 +02:00
2019-03-28 23:46:56 +09:00
2019-03-17 12:56:23 +09:00
2018-12-10 03:40:11 -05:00
2018-07-29 11:08:38 +09:00
2018-12-22 00:37:52 +09:00
2019-03-14 02:39:11 +09:00
2018-10-29 00:19:41 +09:00
2018-07-18 01:18:05 +09:00
2018-12-28 12:11:44 -08:00
2017-05-14 11:20:44 +09:00
2018-05-17 17:34:43 +02:00
2018-06-28 13:36:39 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-03 11:49:06 +01:00
2019-03-29 10:01:37 -07:00
2018-12-28 12:11:44 -08:00
2019-02-19 21:27:53 +01:00
2017-11-02 11:10:55 +01:00
2019-03-04 22:34:54 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-14 08:58:56 +09:00
2017-11-02 11:10:55 +01:00
2019-03-05 21:07:13 -08:00
2018-12-28 12:11:44 -08:00
2018-09-09 09:14:07 +09:00
2017-11-02 11:10:55 +01:00
2018-07-02 11:25:00 -06:00
2017-05-14 11:20:44 +09:00
2018-05-04 06:21:06 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-17 08:18:01 +02:00
2018-11-18 10:15:09 -08:00
2018-03-26 02:01:24 +09:00
2017-10-23 08:01:37 -06:00
2019-01-06 09:46:51 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-03-04 22:35:04 +09:00
2018-06-08 18:56:00 +09:00
2018-06-25 23:21:13 +09:00
2018-12-19 23:41:36 +09:00
2018-12-01 23:13:14 +09:00
2017-05-14 11:20:44 +09:00
2018-08-22 10:52:48 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-11-02 11:10:55 +01:00
2019-03-10 17:48:21 -07:00
2019-03-04 22:34:59 +09:00
2019-03-04 22:35:04 +09:00
2019-01-16 15:04:01 -07:00
2017-11-02 11:10:55 +01:00
2019-03-07 08:53:18 +11:00
2017-11-02 11:10:55 +01:00
2019-03-14 02:39:11 +09:00
2019-02-27 21:40:09 +09:00
2019-03-17 12:56:32 +09:00
2019-03-28 23:46:55 +09:00
2018-08-09 21:51:17 +09:00
2017-11-14 18:25:40 -08:00
2018-11-03 10:47:33 -07:00
2019-03-04 09:29:41 -08:00
2019-01-06 09:46:51 +09:00
2019-01-28 09:11:17 +09:00
2019-03-05 21:07:13 -08:00
2018-06-11 09:14:08 +09:00
2019-03-14 02:39:10 +09:00
2018-08-03 00:47:00 +09:00
2019-03-17 12:56:31 +09:00
2019-03-14 02:39:09 +09:00
2018-07-06 22:04:03 +09:00
2018-08-10 20:19:58 -07:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2019-01-28 09:11:17 +09:00
2018-10-04 22:56:02 +09:00
2017-11-02 11:10:55 +01:00
2017-03-13 09:40:28 -07:00
2018-03-26 02:01:19 +09:00
2017-03-11 11:13:38 +09:00
2017-11-17 16:10:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-08 20:54:08 -05:00
2018-05-29 22:04:12 +09:00
2018-12-08 20:54:08 -05:00
2018-11-21 23:57:33 +09:00
2017-02-10 12:43:47 +11:00
2018-12-28 12:11:44 -08:00
2019-02-22 08:47:05 -07:00
2019-03-07 18:31:59 -08:00
2017-09-08 10:02:55 -06:00
2018-05-04 06:21:06 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-05 08:12:09 -06:00
2018-12-28 12:11:44 -08:00
2018-11-30 14:45:01 -08:00
2019-01-22 13:34:35 +01:00
2017-11-02 11:10:55 +01:00