As suggested, replace earlier changed warnx() / exit() with an errx()

Submitted by:	Peter Jeremy <peterjeremy@optushome.com.au>
This commit is contained in:
Edwin Groothuis 2007-12-26 08:32:20 +00:00
parent 21262c0993
commit a76b9b6973
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174912

View File

@ -210,10 +210,9 @@ main(int argc, char *argv[])
/*
* Case (1). Target is not a directory.
*/
if (argc > 1) {
warnx("Target is not a directory");
exit(1);
}
if (argc > 1)
errx(1, "%s is not a directory", to.p_path);
/*
* Need to detect the case:
* cp -R dir foo