edit: return error when save_file failed
When writing a file failed (e.g. due to a read-only file system), no
error was reported by the 'edit' tool. To be valid (and to not confuse
the poor user) at least '1' should be returned to indicate an error.

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 79f04b2 commit 867b30a0a04b770bff328cc7170615224f80afeb
@Enrico Jorns Enrico Jorns authored on 4 Nov 2015
Sascha Hauer committed on 5 Nov 2015
Showing 1 changed file
View
commands/edit.c