summarylogtreecommitdiffstats
path: root/0001-mxmknod-folder-fix-and-chgrp-uucp.patch
diff options
context:
space:
mode:
authorChris Severance2018-06-05 00:18:45 -0400
committerChris Severance2018-06-05 00:18:45 -0400
commit14eddd3d4cf57a6ef1bd5a1ba47a59981f0021c3 (patch)
tree4aadfba57c03d3d840ee79cea448a00d534f10fb /0001-mxmknod-folder-fix-and-chgrp-uucp.patch
parentb896a42650ea7ccb61698d6637c7f35ad5fb3721 (diff)
downloadaur-14eddd3d4cf57a6ef1bd5a1ba47a59981f0021c3.tar.gz
autu: Update to 1.19-1
Diffstat (limited to '0001-mxmknod-folder-fix-and-chgrp-uucp.patch')
-rw-r--r--0001-mxmknod-folder-fix-and-chgrp-uucp.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/0001-mxmknod-folder-fix-and-chgrp-uucp.patch b/0001-mxmknod-folder-fix-and-chgrp-uucp.patch
new file mode 100644
index 00000000000..e771262e0c1
--- /dev/null
+++ b/0001-mxmknod-folder-fix-and-chgrp-uucp.patch
@@ -0,0 +1,45 @@
+--- mxmknod.orig 2018-05-30 22:18:58.663346739 -0400
++++ mxmknod 2018-05-30 22:19:10.086772998 -0400
+@@ -5,11 +5,11 @@ dev=/dev
+ echo "usage: mxmknod [Name] [Major#] [Minor#]"
+ exit
+ }
+
+ [ -e $dev/$1 ] && {
+- ./mxrmnod $1
++ /usr/lib/npreal2/driver/mxrmnod $1
+ }
+
+ if [ -f /etc/sysconfig/selinux ]
+ then
+ STATUS=`sestatus | grep "SELinux " | perl -ne '@F = split; print "$F[2]\n";'`
+@@ -19,25 +19,29 @@ then
+ if [ -f /etc/selinux/targeted/setrans.conf ]
+ then
+ {
+ echo "mknod -Z system_u:object_r:tty_device_t:s0 -m 666 $1 c $2 $3"
+ mknod -Z system_u:object_r:tty_device_t:s0 -m 666 $dev/$1 c $2 $3 > /dev/null 2>&1
++ chown "root:uucp" "$dev/$1"
+ }
+ else
+ {
+ echo "mknod -Z system_u:object_r:tty_device_t -m 666 $1 c $2 $3"
+ mknod -Z system_u:object_r:tty_device_t -m 666 $dev/$1 c $2 $3 > /dev/null 2>&1
++ chown "root:uucp" "$dev/$1"
+ }
+ fi
+ }
+ else
+ [ -e $dev/$1 ] || {
+ echo "mknod -m 666 $1 c $2 $3"
+ mknod -m 666 $dev/$1 c $2 $3 > /dev/null 2>&1
++ chown "root:uucp" "$dev/$1"
+ }
+ fi
+ else
+ [ -e $dev/$1 ] || {
+ echo "mknod -m 666 $1 c $2 $3"
+ mknod -m 666 $dev/$1 c $2 $3 > /dev/null 2>&1
++ chown "root:uucp" "$dev/$1"
+ }
+ fi