diff options
| author | Wolfram Schneider <wosch@FreeBSD.org> | 1996-10-27 19:04:27 +0000 |
|---|---|---|
| committer | Wolfram Schneider <wosch@FreeBSD.org> | 1996-10-27 19:04:27 +0000 |
| commit | c83667e68c07085f96703aec09d2a5c5544e39d0 (patch) | |
| tree | ec0e933bb2cc2350f66fb48266cd014170c8247a /usr.bin/locate/code/locate.code.c | |
| parent | c85a5ef04cfec4d1276d02e504bc105c7dfbc814 (diff) | |
Notes
Diffstat (limited to 'usr.bin/locate/code/locate.code.c')
| -rw-r--r-- | usr.bin/locate/code/locate.code.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/locate/code/locate.code.c b/usr.bin/locate/code/locate.code.c index 67228da5070e6..c28119f5de6bb 100644 --- a/usr.bin/locate/code/locate.code.c +++ b/usr.bin/locate/code/locate.code.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: locate.code.c,v 1.5 1996/08/31 14:51:18 wosch Exp $ + * $Id: locate.code.c,v 1.6 1996/10/13 01:44:28 wosch Exp $ */ #ifndef lint @@ -176,6 +176,13 @@ main(argc, argv) /* remove newline */ for (cp = path; *cp != '\0'; cp++) { +#ifndef LOCATE_CHAR30 + /* old locate implementations core'd for char 30 */ + if (*cp == SWITCH) + *cp = '?'; + else +#endif /* !LOCATE_CHAR30 */ + /* chop newline */ if (*cp == '\n') *cp = '\0'; |
