ALT Linux Bugzilla
– Attachment 1164 Details for
Bug 8061
правильное использование grep по /etc/mtab
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
my patch
udevd.init.new.diff (text/plain), 1.27 KB, created by
Kachalov Anton
on 2005-10-05 15:27:58 MSD
(
hide
)
Description:
my patch
Filename:
MIME Type:
Creator:
Kachalov Anton
Created:
2005-10-05 15:27:58 MSD
Size:
1.27 KB
patch
obsolete
>--- udevd.init 2005-08-31 12:35:40 +0400 >+++ udevd.init.new 2005-09-27 16:52:48 +0400 >@@ -47,7 +47,7 @@ > get_pts_attributes() > { > local rc line opts >- line=`grep -F " $udev_root/pts " /etc/mtab 2>/dev/null | head -1` >+ line=`grep "[[:space:]]$udev_root/pts[[:space:]]" /proc/mounts 2>/dev/null | head -1` > test -n "$line" || return 1 > set -- $line '' > opts=$4 >@@ -63,7 +63,7 @@ > rc=$? > RETVAL=0 > if test $rc = 0; then >- if grep -qF " $udev_root/pts " /proc/mounts; then >+ if grep -q "[[:space:]]$udev_root/pts[[:space:]]" /proc/mounts; then > mountcmd="mount --move pts $udev_root/pts" > else > mountcmd="mount -t devpts devpts $udev_root/pts -o $opts" >@@ -78,7 +78,7 @@ > { > test -f /proc/mounts || return 0 > local mountcmd >- if grep -qF " $udev_root/shm " /proc/mounts; then >+ if grep -q "[[:space:]]$udev_root/shm[[:space:]]" /proc/mounts; then > mountcmd="mount --move shm $udev_root/shm" > else > mountcmd="mount -t tmpfs shmfs $udev_root/shm" >@@ -127,7 +127,7 @@ > cd "$udev_root" > RETVAL=$? > [ $RETVAL -ne 0 ] && return $RETVAL >- if ! grep -qF "udev $udev_root tmpfs" /proc/mounts; then >+ if ! grep -q "udev[[:space:]]$udev_root[[:space:]]tmpfs" /proc/mounts; then > mounted=0 > mount -t tmpfs udev $udev_root > ACTION=add DEVPATH=/class/mem/null $bin mem/null;# && \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8061
: 1164