Third time's the charm. pkg -N output needs to go to stderr.

Approved by:	bapt
MFC after:	2 weeks
This commit is contained in:
Matthew Seaman 2012-12-23 11:22:18 +00:00
parent 2691bc24f1
commit d8f9490c67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244608

View File

@ -457,10 +457,8 @@ main(__unused int argc, char *argv[])
* a system is configured to use pkg, don't bootstrap pkg
* when that argument is given as argv[1].
*/
if ( argv[1] != NULL && strcmp(argv[1], "-N") == 0) {
printf("%s", "pkg is not installed\n");
exit(EXIT_FAILURE);
}
if ( argv[1] != NULL && strcmp(argv[1], "-N") == 0)
errx(EXIT_FAILURE, "pkg is not installed\n");
/*
* Do not ask for confirmation if either of stdin or stdout is