~sourcemage/sorcery

12d444d29db5c194a8979ed44167ecad1beb2b60 — Jaka Kranjc 7 years ago fbfada5 stable-1.15
alter, libcodex: fixed find's subtle semantic break as of 4.5.11
3 files changed, 6 insertions(+), 3 deletions(-)

M ChangeLog
M usr/sbin/alter
M var/lib/sorcery/modules/libcodex
M ChangeLog => ChangeLog +3 -0
@@ 1,3 1,6 @@
2016-01-09 Jaka Kranjc <lynxlynxlynx@sourcemage.org>
	* alter, libcodex: fixed find's subtle semantic break as of 4.5.11

2015-04-22 Jaka Kranjc <lynxlynxlynx@sourcemage.org>
	* version: 1.15.4 released!


M usr/sbin/alter => usr/sbin/alter +2 -2
@@ 229,7 229,7 @@ function alter_gather_bins() {

  if [ ! -f "/etc/prelink.conf" ]; then
    message "${MESSAGE_COLOR}Gathering binary directories for altering (this could take a long while)...${DEFAULT_COLOR}"
    find / -perm +001 2> /dev/null |
    find / -perm -001 2> /dev/null |
    while read LINE; do
      [ ! -h "$LINE" ] && file $LINE 2> /dev/null |
      grep -q ELF && echo "$LINE"


@@ 284,7 284,7 @@ function alter_strip_all_do() {
  alter_gather_bins

  alter_alter -n smgl-strip '
    find $(cat /etc/prelink.conf) -perm +001 2> /dev/null |
    find $(cat /etc/prelink.conf) -perm -001 2> /dev/null |
    while read LINE; do
      [ ! -h "$LINE" ] && file $LINE 2> /dev/null |
      grep -q ELF && echo "$LINE"

M var/lib/sorcery/modules/libcodex => var/lib/sorcery/modules/libcodex +1 -1
@@ 919,7 919,7 @@ function codex_create_in_memory_cache_all() {
##
#---------------------------------------------------------------------
function codex_find_in_grimoire () {
    find "$1" -follow -maxdepth 3 -mindepth 3 -perm +700 -name "$2"
    find "$1" -follow -maxdepth 3 -mindepth 3 -perm /700 -name "$2"
}

#---------------------------------------------------------------------