Fix some longstanding environment bugs

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

 



When an environment doesn't fit into the environment partition saveenv
still returned success. Also loading this corrupted partition resulted
in success. Fix this.

----------------------------------------------------------------
Sascha Hauer (4):
      unlink_recursive: return negative error value
      loadenv: ignore -ENOENT when removing /env
      saveenv: Properly detect write errors
      loadenv: detect truncated environment files

 commands/loadenv.c     |  2 +-
 common/environment.c   | 38 ++++++++++++++++++++++++++++----------
 lib/unlink-recursive.c |  2 +-
 3 files changed, 30 insertions(+), 12 deletions(-)

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux