From nobody Thu Dec 01 13:37:44 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NNHFN2zsXz4jDcj for ; Thu, 1 Dec 2022 13:37:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NNHFN0nl3z3m9w for ; Thu, 1 Dec 2022 13:37:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669901864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cbQXNodkYwvwn4b2WBE0FAz8V+o+5vxC41DS2A7ufho=; b=iaYhGl49CcBko/KTd6lqUtpKmJrP+23+fJop76UrStFV6B/B1fZIOgx0jH6qW1c9TuJMuW Ra4TtG4urhbQ3Vw82FwObT9/F1AziCotZtH+FGTbCqJuXODojsgjE1hBwVv44RmR2gbvV5 HVwNCOcONEtKT1HSTV8r1tDC1o9b7fldB7IgpRtDWPVdNJx1GTLhkT+/U5dGbv5z1Qr3rZ Z3PDL9LvJObrKGjgfuxhW96Yy6rNBqPXdkzju2kD0SClwe+eBjaUESl3//u+Zh8r1pz0Xk 0wWPH253qAAeRDKpaA8WLb+NqpE7zzgtleqOZieI/rLBKN01sPL0D+uunG70cQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669901864; a=rsa-sha256; cv=none; b=NgcsPdA8+qyzQrQ06dXOn58HQPtxd3Xl0Qb3MmIbbDrfbkib7NufAlBOPPC1JP9L/mee3/ +D1NU+ytB2BQBfUONf0uaSDd8OZISILOTCgLhQmdWiQ+1mFLUTtrOUbStsMOyM1QplK9bV N6zX033UCyQ0zKDc4iYVv+JqvFfcJQVkvv/ksBcefiUqLpSW6mRf9pEalaNsl75O2G3c23 NA9rvrHep0xpISDjuOGoYhQLZklLEIJtvPyk8S+NqSjdllRkVNrbHXN8/+go4MuAdOd5+y dANDzAqFH0U8ufgrjobwQ5oxzDBTEX+//wp0IGYKGdoKwEpevwWJ3/EqSaBhPg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NNHFM6jsrzf16 for ; Thu, 1 Dec 2022 13:37:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2B1DbhMo089984 for ; Thu, 1 Dec 2022 13:37:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B1Dbh5K089983 for ports-bugs@FreeBSD.org; Thu, 1 Dec 2022 13:37:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268099] egrep empty string issue Date: Thu, 01 Dec 2022 13:37:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mail@rubenvos.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268099 Bug ID: 268099 Summary: egrep empty string issue Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: mail@rubenvos.com Hi, We ran into an issue where snapshots were not being deleted properly. Fortunately my co-worker was able to identify and hotpatch the issue.=20 More specifically: the way egrep is being used (against an empty string) in= the script seems invalid. Using FreeBSD egrep in this particular situation thro= ws this: # egrep "string(aaa|)" egrep: empty (sub)expression #=20 since some variables are declared empty by default this caused snapshots not being deleted, which in turn filled up our ZFS pool on one of our machines. Altering the script like this: diff /root/zfSnap /usr/local/sbin/zfSnap :=20 235,236c235,236 < delete_specific_fs_snapshots=3D"someText" # List of specific snapshot= s to delete < delete_specific_fs_snapshots_recursively=3D"someText" # List of specific snapshots to delete recursively --- > delete_specific_fs_snapshots=3D"" # List of specific snapshots to del= ete > delete_specific_fs_snapshots_recursively=3D"" # List of specific snapshot= s to delete recursively 398d397 < export rm_snapshot_pattern=3DsomeText solved our predicament.=20 Kind regards, Ruben --=20 You are receiving this mail because: You are the assignee for the bug.=