Date: Tue, 11 Apr 1995 06:30:01 -0700 From: miff@spam.apana.org.au To: freebsd-bugs Subject: bin/334: -n option to strings does not work Message-ID: <199504111330.GAA19716@freefall.cdrom.com> In-Reply-To: Your message of Tue, 11 Apr 1995 23:40:57 GMT <199504112340.XAA02102@spam.apana.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 334 >Category: bin >Synopsis: -n option to strings does not work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 11 06:30:00 1995 >Originator: michael smith >Organization: Genesis Software >Release: FreeBSD 2.0-RELEASE i386 >Environment: Any. >Description: The -n number option to /usr/bin/strings is not implemented correctly. Any attempt to specify a number generates an error. >How-To-Repeat: specify the -n option to strings : # strings -n 10 /kernel |more >Fix: In /usr/src/usr.bin/strings/strings.c, add the marked lines : + if (minlen < 1) + { if (minlen == -1) minlen = DEF_LEN; else { (void)fprintf(stderr, "strings: length less than 1\n"!); exit(1); } + } >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504111330.GAA19716>