diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-01-11 19:00:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-01-11 19:00:04 +0100 |
commit | 08c62ae2fa9378732588ef7b9a9120b377d26d1e (patch) | |
tree | 6c4b687f9ec73397be1f3be08f7df191ab2d6542 /commands | |
parent | 917225203ff8047ae91e03ac4fc6fc320f37f1ce (diff) | |
parent | fa9cc22e29faf24a70a4771a71f93e8a17045524 (diff) | |
download | barebox-08c62ae2fa9378732588ef7b9a9120b377d26d1e.tar.gz barebox-08c62ae2fa9378732588ef7b9a9120b377d26d1e.tar.xz |
Merge branch 'for-next/truncate'
Diffstat (limited to 'commands')
-rw-r--r-- | commands/ubi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/ubi.c b/commands/ubi.c index 4c445d2216..5e2758400a 100644 --- a/commands/ubi.c +++ b/commands/ubi.c @@ -42,7 +42,7 @@ static int do_ubiupdatevol(int argc, char *argv[]) return 1; } - fd_vol = open(argv[optind], O_WRONLY); + fd_vol = open(argv[optind], O_WRONLY | O_TRUNC); if (fd_vol < 0) { perror("open volume"); ret = 1; |