summaryrefslogtreecommitdiff
path: root/networking/sendmail.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-02-17 14:28:53 +0000
committerDenis Vlasenko2008-02-17 14:28:53 +0000
commitcb448fe01bbe75ef31c3190e8b63b0e1a320ffb4 (patch)
tree9757477193c1b8f3be9a772cabfb1ef92639240e /networking/sendmail.c
parentffae845cfd0a0b9872827d806984841d4cfee104 (diff)
downloadbusybox-cb448fe01bbe75ef31c3190e8b63b0e1a320ffb4.zip
busybox-cb448fe01bbe75ef31c3190e8b63b0e1a320ffb4.tar.gz
libbb: introduce and use xrename and rename_or_warn.
Diffstat (limited to 'networking/sendmail.c')
-rw-r--r--networking/sendmail.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/sendmail.c b/networking/sendmail.c
index fa995ab..b2fbc5a 100644
--- a/networking/sendmail.c
+++ b/networking/sendmail.c
@@ -512,10 +512,7 @@ int sendgetmail_main(int argc, char **argv)
if (fd < 0)
bb_perror_msg_and_die("cannot create unique file");
close(fd);
- if (rename(tmp_name, new_name) < 0) {
- // something is very wrong
- bb_perror_msg_and_die("cannot move %s to %s", tmp_name, new_name);
- }
+ xrename(tmp_name, new_name);
}
// delete message from server