← Commit list

b94669543

Eric Andersen
Eric Andersen
2004-04-21
FAILED Duration: 25s

Subject

This sed patch can only be described as "duh". Stat the source file, chmod the _destination_ file. (Ah hah! That works _much_ better...) I implemented the behavior, I just forgot to test this corner of it. My fault, sorry...

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 →

editors/sed.c+1 -1
@@ -1191,7 +1191,7 @@ extern int sed_main(int argc, char **argv)
nonstdout=bb_wfopen(outname,"w");
/* Set permissions of output file */
fstat(fileno(file),&statbuf);
- fchmod(fileno(file),statbuf.st_mode);
+ fchmod(fileno(nonstdout),statbuf.st_mode);
atexit(cleanup_outname);
}
process_file(file);