[PATCH] Remove leading PATH to tr in lvmdump.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The  lvmdump.sh script invokes tr by using the full path: /usr/bin/tr.
 This cause problems on distributions like Arch Linux where tr is in
another location, e.g. /bin/tr. As the script already use tr at
another place without using the full path (see line 139), I propose
the appended patch to remove the leading path to tr.

Thanks,
Eric


--- scripts/lvmdump.sh.old      2011-07-10 18:13:53.000000000 -0400
+++ scripts/lvmdump.sh  2011-07-10 18:14:13.000000000 -0400
@@ -76,7 +76,7 @@
        esac
 done

-NOW=`$DATE -u +%G%m%d%k%M%S | /usr/bin/tr -d ' '`
+NOW=`$DATE -u +%G%m%d%k%M%S | tr -d ' '`
 if test -n "$userdir"; then
        dir="$userdir"
 else

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux