Signed-off-by: Karel Zak <kzak@redhat.com>
#endif
#include "fdiskP.h"
#endif
#include "fdiskP.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <termios.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <termios.h>
#include <paths.h>
#include "c.h"
#include <paths.h>
#include "c.h"
for b in $bins; do
libs=$(readelf --dynamic $b 2> /dev/null | \
awk '/NEEDED/ { print $5 }' | \
for b in $bins; do
libs=$(readelf --dynamic $b 2> /dev/null | \
awk '/NEEDED/ { print $5 }' | \
- sed 's:\[::g; s:\..*::g; s:libc::g; s:ld\-.*::g' | \
+ sed 's:\[::g; s:\..*::g; s:^libc$::g; s:ld\-.*::g' | \
sort -u | tr '\n' ' ')
if [ -n "$libs" ]; then
sort -u | tr '\n' ' ')
if [ -n "$libs" ]; then