← Commit list

9227371b7

Glenn L McGrath
Glenn L McGrath
2002-12-06
SOURCE BUG Duration: 5s

Subject

Fix bug that stoped -a working

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ifupdown.c+3 -1
@@ -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);
}