From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CCFE613888F for ; Tue, 13 Oct 2015 13:36:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF9A6E07D1; Tue, 13 Oct 2015 13:36:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 65722E07D1 for ; Tue, 13 Oct 2015 13:36:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5B01734091A for ; Tue, 13 Oct 2015 13:36:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C484E103A for ; Tue, 13 Oct 2015 13:36:54 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1444742863.b81317bdf8e3eed8b8ff2bef757ba29f362ed297.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/mountinfo.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: b81317bdf8e3eed8b8ff2bef757ba29f362ed297 X-VCS-Branch: master Date: Tue, 13 Oct 2015 13:36:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 72ea566e-bb8b-417d-8794-f0adf62e10bc X-Archives-Hash: 7fc8e79311e17a54e8b0015a2490d214 commit: b81317bdf8e3eed8b8ff2bef757ba29f362ed297 Author: William Hubbs gmail com> AuthorDate: Tue Oct 13 13:27:43 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Oct 13 13:27:43 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b81317bd mountinfo: make sure the netdev variable is initialized on Linux This fixes the following regression: X-Gentoo-Bug: 562668 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562668 src/rc/mountinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c index 53f2890..3f1dfb6 100644 --- a/src/rc/mountinfo.c +++ b/src/rc/mountinfo.c @@ -305,6 +305,7 @@ find_mounts(struct args *args) buffer = xmalloc(sizeof(char) * PATH_MAX * 3); while (fgets(buffer, PATH_MAX * 3, fp)) { + netdev = -1; p = buffer; from = strsep(&p, " "); to = strsep(&p, " ");