[libubootenv] uboot_env: access_tostring: fix write once flag
diff mbox series

Message ID CE2E43470FE5444A811B580382FE5EDF590CE637D7@KEMPMAIL2.woodward.com
State Accepted
Headers show
Series
  • [libubootenv] uboot_env: access_tostring: fix write once flag
Related show

Commit Message

'Pierre-Jean Texier' via swupdate June 10, 2019, 9:21 p.m. UTC
Signed-off-by: Lukasz Zemla <Lukasz.Zemla@woodward.com>
---
 src/uboot_env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.4

Patch
diff mbox series

diff --git a/src/uboot_env.c b/src/uboot_env.c
index 5794438..ec42905 100644
--- a/src/uboot_env.c
+++ b/src/uboot_env.c
@@ -100,7 +100,7 @@  static char access_tostring(access_attribute a)
        case ACCESS_ATTR_READ_ONLY:
                return 'r';
        case ACCESS_ATTR_WRITE_ONCE:
-               return 'w';
+               return 'o';
        case ACCESS_ATTR_CHANGE_DEFAULT:
                return 'c';
        }