From owner-freebsd-questions@FreeBSD.ORG Wed Jul 30 14:22:48 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0D2A9913 for ; Wed, 30 Jul 2014 14:22:48 +0000 (UTC) Received: from mail-vc0-x22a.google.com (mail-vc0-x22a.google.com [IPv6:2607:f8b0:400c:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5DF1256D for ; Wed, 30 Jul 2014 14:22:47 +0000 (UTC) Received: by mail-vc0-f170.google.com with SMTP id lf12so1884666vcb.29 for ; Wed, 30 Jul 2014 07:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=eE8yryPU/UKdDhJuKNDP/p3IApsfY/r+sce8LJlXt7M=; b=DxeILNfMu5PkNR+C9FRXuVnSdzt26IVs9agBArO+Td2o8MGsv3203aWnBCLsHHop9r d5atAbiT+hO+48ubYNMN32ojhw8TJXYN/o6g5SrAFjZcka9UZvSVOlHcwqlwJ64ZFdZF cI2F70sbhrekDlrOtTJ46OXi7mubsSbSNMaVPYr/xKQhtR6u1SEHZDbZ+xTU61n2Q8jZ 6hPDz3cTOnGsAMFK7N+44jwqOMWStNbtcucDQaBvI8c1r8ZT0qFHNtlt6vkqkutl7j0Y jFqLltjfQLvflv1VLMqSDXfuvKjSgS0jo0OhSVB/WimNRfHaO14hWm54/ZPbJzJ3JjSK AQAg== MIME-Version: 1.0 X-Received: by 10.220.190.134 with SMTP id di6mr3589600vcb.43.1406730164975; Wed, 30 Jul 2014 07:22:44 -0700 (PDT) Received: by 10.58.187.66 with HTTP; Wed, 30 Jul 2014 07:22:44 -0700 (PDT) Date: Wed, 30 Jul 2014 10:22:44 -0400 Message-ID: Subject: pkg audit not working like portaudit From: Aleksandr Miroslav To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2014 14:22:48 -0000 I used to be able to do something like this with portaudit in my cron jobs: portaudit > /dev/null || portaudit |mailx -s portaudit root i.e. portaudit returned a non-zero value when there were vulnerabilities. I expected "pkg audit" to do the same, but apparently it always returns zero. Is there some way to get the old portaudit behavior or do I have to write a script to parse the output? thanks, Alex