teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0524-udev-test-do-not-rely-on-mail-group-being-defined.patch

6136c1
From c68da72231d5c502acd4e79791d0810790f3231b Mon Sep 17 00:00:00 2001
6136c1
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
6136c1
Date: Fri, 4 Sep 2020 18:09:20 +0200
6136c1
Subject: [PATCH] udev-test: do not rely on "mail" group being defined
6136c1
6136c1
"audio" should be there, at least we declare it. "mail" nowadays is less
6136c1
likely to exist than in the past.
6136c1
6136c1
Fixes one of the items in #16942.
6136c1
6136c1
(cherry picked from commit a9030b81c154c3ec92227d04cad6b13cc1125608)
6136c1
6136c1
Related: #1642728
6136c1
---
6136c1
 test/udev-test.pl | 4 ++--
6136c1
 1 file changed, 2 insertions(+), 2 deletions(-)
6136c1
6136c1
diff --git a/test/udev-test.pl b/test/udev-test.pl
6136c1
index 4bf97d82bb..a4deffacb9 100755
6136c1
--- a/test/udev-test.pl
6136c1
+++ b/test/udev-test.pl
6136c1
@@ -629,9 +629,9 @@ EOF
6136c1
                 desc            => "textual user/group id",
6136c1
                 devpath         => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
6136c1
                 exp_name        => "node",
6136c1
-                exp_perms       => "root:mail:0660",
6136c1
+                exp_perms       => "root:audio:0660",
6136c1
                 rules           => <
6136c1
-SUBSYSTEMS=="scsi", KERNEL=="sda", SYMLINK+="node", OWNER="root", GROUP="mail"
6136c1
+SUBSYSTEMS=="scsi", KERNEL=="sda", SYMLINK+="node", OWNER="root", GROUP="audio"
6136c1
 EOF
6136c1
         },
6136c1
         {