Skip to content

Commit

Permalink
Merge pull request NixOS#69028 from matthewbauer/remove-iselfexec-ise…
Browse files Browse the repository at this point in the history
…lfdyn

Revert "setup.sh introduce isELFExec, isELFDyn"
  • Loading branch information
matthewbauer committed Sep 21, 2019
2 parents d8b7b95 + 24c6aef commit 8e9b98a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkgs/stdenv/generic/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,6 @@ isELF() {
if [ "$magic" = $'\177ELF' ]; then return 0; else return 1; fi
}

# Return success if the specified file is an ELF object
# and its e_type is ET_EXEC (executable file)
isELFExec() {
grep -ao -P '^\177ELF.{11}\x00\x02' "$1" >/dev/null
}

# Return success if the specified file is an ELF object
# and its e_type is ET_DYN (shared object file)
isELFDyn() {
grep -ao -P '^\177ELF.{11}\x00\x03' "$1" >/dev/null
}

# Return success if the specified file is a script (i.e. starts with
# "#!").
isScript() {
Expand Down

0 comments on commit 8e9b98a

Please sign in to comment.