Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace obsolecent egrep with grep -E #199

Merged
merged 1 commit into from
Jan 24, 2023
Merged

Conversation

rad4day
Copy link
Contributor

@rad4day rad4day commented Jan 17, 2023

Fixes the warnings occurring with recent grep versions.

Currently, the output with grep version 3.8 looks like this:

$ one_gadget libc-2.31.so
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
0xe3afe execve("/bin/sh", r15, r12)
constraints:
  [r15] == NULL || r15 == NULL
  [r12] == NULL || r12 == NULL

0xe3b01 execve("/bin/sh", r15, rdx)
constraints:
  [r15] == NULL || r15 == NULL
  [rdx] == NULL || rdx == NULL

0xe3b04 execve("/bin/sh", rsi, rdx)
constraints:
  [rsi] == NULL || rsi == NULL
  [rdx] == NULL || rdx == NULL

this PR removes those warnings :)

Fixes the warnings occuring with recent grep versions
egrep: warning: egrep is obsolescent; using grep -E

Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
@david942j
Copy link
Owner

Thanks for the contribution!

@david942j david942j merged commit f640cd8 into david942j:master Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants