[PATCH 0/1]: Setting KCONFIG_CONFIG can break conf_write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I ran into an issue where if conf --olddefconfig is used to update
a config which is not on the same mounted volume, the conf_write
fails. The final rename of tmpconfig fails to move the file across
volumes.

For example, this fails (on my host /tmp is tmpfs):

$ touch /tmp/test.config
$ export KCONFIG_CONFIG=/tmp/test.config
$ ./scripts/kconfig/conf --olddefconfig Kconfig

This is only an issue when no name is passed to conf_write. When a
name is passed, there is code to determine the directory and write
tmpconfig there.

The following patch uses the same dirname code for the environment
variable, when no name is passed to conf_write.

Let me know what you think.

Thanks,
--
Andy Voltz

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux