FIXUPHACK 446 B

123456789101112
  1. #130122
  2. #xsane puts up a warning msg at startup if running as root, remove it...
  3. #this code is also in file /usr/local/petget/hacks-postinstall.sh.
  4. #WARNING: this may only work for x86 binary.
  5. if [ -f /usr/bin/bbe ];then #bbe is a sed-like utility for binary files.
  6. if [ -f usr/bin/xsane ];then
  7. bbe -e 's/\x6b\x00getuid/\x6b\x00getpid/' usr/bin/xsane > /tmp/xsane-temp1
  8. mv -f /tmp/xsane-temp1 usr/bin/xsane
  9. chmod 755 usr/bin/xsane
  10. fi
  11. fi