diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-17 14:28:53 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-17 14:28:53 +0000 |
commit | cb448fe01bbe75ef31c3190e8b63b0e1a320ffb4 (patch) | |
tree | 9757477193c1b8f3be9a772cabfb1ef92639240e /editors/sed.c | |
parent | ffae845cfd0a0b9872827d806984841d4cfee104 (diff) | |
download | busybox-w32-cb448fe01bbe75ef31c3190e8b63b0e1a320ffb4.tar.gz busybox-w32-cb448fe01bbe75ef31c3190e8b63b0e1a320ffb4.tar.bz2 busybox-w32-cb448fe01bbe75ef31c3190e8b63b0e1a320ffb4.zip |
libbb: introduce and use xrename and rename_or_warn.
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c index 433418253..e55bcafc4 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -1340,8 +1340,7 @@ int sed_main(int argc, char **argv) | |||
1340 | 1340 | ||
1341 | G.nonstdout = stdout; | 1341 | G.nonstdout = stdout; |
1342 | /* unlink(argv[i]); */ | 1342 | /* unlink(argv[i]); */ |
1343 | // FIXME: error check / message? | 1343 | xrename(G.outname, argv[i]); |
1344 | rename(G.outname, argv[i]); | ||
1345 | free(G.outname); | 1344 | free(G.outname); |
1346 | G.outname = NULL; | 1345 | G.outname = NULL; |
1347 | } | 1346 | } |