← Commit list

dd3461af2

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

Subject

Make output the same as upstream, patch by Tito

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 →

miscutils/strings.c+3 -2
@@ -50,7 +50,7 @@ int strings_main(int argc, char **argv)
minlen = -1;
while ((ch = getopt(argc, argv, "an:of")) > 0)
switch(ch) {
- case '-':
+ case 'a':
break;
case 'f':
fflg = 1;
@@ -86,6 +86,7 @@ int strings_main(int argc, char **argv)
foff = 0;
for (cnt = 0; (ch = getchar()) != EOF;) {
+ foff++;
if (ISSTR(ch)) {
if (!cnt)
C = bfr;
@@ -95,7 +96,7 @@ int strings_main(int argc, char **argv)
if (fflg)
printf("%s:", file);
if (oflg)
- printf("%07ld %s", (long)(foff - minlen), (char *)bfr);
+ printf("%7ld %s", (long)(foff - minlen), (char *)bfr);
else
printf("%s", bfr);
while ((ch = getchar()) != EOF && ISSTR(ch))