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:
parent
2691bc24f1
commit
d8f9490c67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244608
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user