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 /runit | |
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 'runit')
-rw-r--r-- | runit/runsv.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 02271d68b..02dcf50ca 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -157,16 +157,6 @@ static int open_trunc_or_warn(const char *name) | |||
157 | return fd; | 157 | return fd; |
158 | } | 158 | } |
159 | 159 | ||
160 | static int rename_or_warn(const char *old, const char *new) | ||
161 | { | ||
162 | if (rename(old, new) == -1) { | ||
163 | bb_perror_msg("%s: warning: cannot rename %s to %s", | ||
164 | dir, old, new); | ||
165 | return -1; | ||
166 | } | ||
167 | return 0; | ||
168 | } | ||
169 | |||
170 | static void update_status(struct svdir *s) | 160 | static void update_status(struct svdir *s) |
171 | { | 161 | { |
172 | ssize_t sz; | 162 | ssize_t sz; |