environment: allow saving of symbolic link changes
Currently it is not possible to change symbolic links in the default
environment. For example if the default environment contains the
link "current_boot -> mmc" then the following does not work:

$ rm current_boot
$ ln net current_boot
$ saveenv

After reset the link is still pointing to "mmc" and this error appears:

"symlink: /env/boot/current_boot -> net : error -17"

The patch fixes the above problem and moves the "ENV_FLAG_NO_OVERWRITE"
to enable handling of symbolic links in this case too.

Signed-off-by: Zahari Doychev <zahari.doychev@linux.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a9e7e68 commit 295a5f8e4b9f7359f2093f61a6672844bd406cb4
@Zahari Doychev Zahari Doychev authored on 16 Dec 2015
Sascha Hauer committed on 17 Dec 2015
Showing 1 changed file
View
common/environment.c