← Commit list

aad465efb

Glenn L McGrath
Glenn L McGrath
2003-01-20
SOURCE BUG Duration: 2s

Subject

Make test mode output same as official version

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 (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/run_parts.c+3 -3
@@ -75,9 +75,9 @@ extern int run_parts(char **args, const unsigned char test_mode)
perror_msg_and_die("failed to stat component %s", filename);
}
if (S_ISREG(st.st_mode) && !access(filename, X_OK)) {
- if (test_mode)
- printf("run-parts would run %s\n", filename);
- else {
+ if (test_mode) {
+ puts("%s", filename);
+ } else {
/* exec_errno is common vfork variable */
volatile int exec_errno = 0;
int result;