FS#40661 - [wpa_supplicant] install sample config under /usr/share/doc/ instead of /etc/
Attached to Project:
Arch Linux
Opened by Jakub Klinkovský (lahwaacz) - Tuesday, 03 June 2014, 16:22 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Friday, 09 December 2016, 21:32 GMT
Opened by Jakub Klinkovský (lahwaacz) - Tuesday, 03 June 2014, 16:22 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Friday, 09 December 2016, 21:32 GMT
|
Details
The default /etc/wpa_supplicant/wpa_supplicant.conf is an
"example documentation config" with uncommented options and,
more importantly, also multiple network blocks uncommented.
Keeping it under /etc/ might lead to unintended behaviour.
For example, in conjunction with the recently introduced
dhcpcd hook [1], it may lead to wpa_supplicant being started
without user's intervention and not failing due to the
network blocks uncommented in wpa_supplicant.conf.
As the decision to keep the configs under /etc/ is made in PKGBUILD [2], I think it is sane to install it under /usr/share/doc/ instead. Even wpa_supplicant.conf(5) indicates that the path to example config is "probably" /usr/share/doc/wpa_supplicant/. For further reasoning please see https://mailman.archlinux.org/pipermail/arch-general/2014-May/036386.html [1]: https://wiki.archlinux.org/index.php/Dhcpcd#10-wpa_supplicant [2]: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/wpa_supplicant#n42 |
This task depends upon
Closed by Bartłomiej Piotrowski (Barthalion)
Friday, 09 December 2016, 21:32 GMT
Reason for closing: Fixed
Additional comments about closing: wpa_supplicant 1:2.6-3
Friday, 09 December 2016, 21:32 GMT
Reason for closing: Fixed
Additional comments about closing: wpa_supplicant 1:2.6-3
https://gist.githubusercontent.com/holomorph/313c450f6a5ee4c72b72/raw/01ecc77ae0481dfb5b85179eb79c461e68a991f6/wpa_sup.patch
[3]: https://wiki.archlinux.org/index.php?title=Dhcpcd&diff=next&oldid=335969
...
See the example configuration file, probably in /usr/share/doc/wpa_supplicant/, for detailed information
...
apart from this, files under /etc are configuration files, used by the user to modify the programs behaviour
and this makes think me that /etc/wpa_supplicant/wpa_supplicant.conf is a configuration file, not an example
IMHO /etc/wpa_supplicant/wpa_supplicant.conf should be moved in /usr/share/doc/wpa_supplicant/
But thanks for the feedback!