projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83fdb31
)
Fix bug that stoped -a working
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 6 Dec 2002 08:10:40 +0000
(08:10 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 6 Dec 2002 08:10:40 +0000
(08:10 -0000)
networking/ifupdown.c
patch
|
blob
|
history
diff --git
a/networking/ifupdown.c
b/networking/ifupdown.c
index 1387033ba968aaf54170b7abcfe20fcaf04de594..450a508967f21806755188dc63e6fc91f650cbcc 100644
(file)
--- a/
networking/ifupdown.c
+++ b/
networking/ifupdown.c
@@
-1405,12
+1405,14
@@
extern int ifupdown_main(int argc, char **argv)
}
}
if (state_fp != NULL && !no_act) {
+ unsigned short j;
+
if (ftruncate(fileno(state_fp), 0) < 0) {
error_msg_and_die("failed to truncate statefile %s: %s", statefile, strerror(errno));
}
rewind(state_fp);
- for (
i = 0; i < n_state; i
++) {
+ for (
j = 0; j < n_state; j
++) {
fputs(state[i], state_fp);
fputc('\n', state_fp);
}