As suggested, replace earlier changed warnx() / exit() with an errx()
Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
This commit is contained in:
parent
21262c0993
commit
a76b9b6973
@ -210,10 +210,9 @@ main(int argc, char *argv[])
|
|||||||
/*
|
/*
|
||||||
* Case (1). Target is not a directory.
|
* Case (1). Target is not a directory.
|
||||||
*/
|
*/
|
||||||
if (argc > 1) {
|
if (argc > 1)
|
||||||
warnx("Target is not a directory");
|
errx(1, "%s is not a directory", to.p_path);
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* Need to detect the case:
|
* Need to detect the case:
|
||||||
* cp -R dir foo
|
* cp -R dir foo
|
||||||
|
Loading…
Reference in New Issue
Block a user