eal/windows: allow running as non-admin
authorPallavi Kadam <pallavi.kadam@intel.com>
Mon, 26 Oct 2020 18:44:58 +0000 (11:44 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 3 Nov 2020 21:45:02 +0000 (22:45 +0100)
commita2b04717394ff260fc4c388915d5ca7bb085f9f9
tree87731a1e54778008983c930e6f1d47f6dcf91f71
parentaf5673f9b660528613ae95964e862e3094fd6027
eal/windows: allow running as non-admin

Currently, since there is no runtime directory set, the code tries to
create a file in C:\ which is only writable with administrator
privileges. As a result, if the user is not admin, the application will
fail.
So, forcing no_shconf to 1 to prevent the code having to create files in
the runtime directory.

Suggested-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Signed-off-by: Pallavi Kadam <pallavi.kadam@intel.com>
Reviewed-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
lib/librte_eal/windows/eal.c