Don't initialize udata, remove bogus case, fix usage string
This commit is contained in:
parent
91e94a1d94
commit
ee4f505e5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14157
@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cp.c,v 1.6 1995/05/30 00:06:21 rgrimes Exp $
|
||||
* $Id: cp.c,v 1.8 1996/02/19 00:43:42 wosch Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -104,7 +104,7 @@ main(argc, argv)
|
||||
int Hflag, Lflag, Pflag, ch, fts_options, r;
|
||||
char *target;
|
||||
|
||||
Hflag = Lflag = Pflag = Rflag = 0;
|
||||
Hflag = Lflag = Pflag = 0;
|
||||
while ((ch = getopt(argc, argv, "HLPRfipr")) != EOF)
|
||||
switch (ch) {
|
||||
case 'H':
|
||||
@ -134,7 +134,6 @@ main(argc, argv)
|
||||
case 'r':
|
||||
rflag = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
usage();
|
||||
break;
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: utils.c,v 1.5 1995/10/03 12:55:01 bde Exp $
|
||||
* $Id: utils.c,v 1.7 1996/02/19 00:43:44 wosch Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -281,7 +281,7 @@ void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n%s\n",
|
||||
"usage: cp [-R [-H | -L | -P] [-fip] src target",
|
||||
" cp [-R [-H | -L | -P] [-fip] src1 ... srcN directory");
|
||||
"usage: cp [-R [-H | -L | -P]] [-fip] src target",
|
||||
" cp [-R [-H | -L | -P]] [-fip] src1 ... srcN directory");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user