=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/find/main.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/find/main.c 1997/06/17 05:35:44 1.6 --- src/usr.bin/find/main.c 1997/06/17 05:53:44 1.7 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.6 1997/06/17 05:35:44 millert Exp $ */ /*- * Copyright (c) 1990, 1993 --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.7 1997/06/17 05:53:44 millert Exp $ */ /*- * Copyright (c) 1990, 1993 *************** *** 35,41 **** #ifndef lint /*static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: main.c,v 1.6 1997/06/17 05:35:44 millert Exp $"; #endif /* not lint */ #include --- 35,41 ---- #ifndef lint /*static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: main.c,v 1.7 1997/06/17 05:53:44 millert Exp $"; #endif /* not lint */ #include *************** *** 73,79 **** (void)time(&now); /* initialize the time-of-day */ ! p = paths = (char **) emalloc(sizeof(char *) * (argc > 1 ? argc : 2)); sigaction(SIGINFO, &sa, NULL); --- 73,79 ---- (void)time(&now); /* initialize the time-of-day */ ! p = paths = (char **) emalloc(sizeof(char *) * argc); sigaction(SIGINFO, &sa, NULL); *************** *** 120,126 **** } if (p == paths) ! *p++ = "."; /* use cwd if no dir specified */ *p = NULL; if (!(paths = realloc(paths, sizeof(char *) * (p - paths + 1)))) --- 120,126 ---- } if (p == paths) ! usage(); *p = NULL; if (!(paths = realloc(paths, sizeof(char *) * (p - paths + 1))))