install/dracut-install.c: do not ldd directories

master
Harald Hoyer 2012-10-03 16:37:23 -04:00
parent 25787f8071
commit 43a050e542
1 changed files with 4 additions and 1 deletions

View File

@ -291,6 +291,9 @@ static int resolve_deps(const char *src)
if (strstr(buf, "loader cannot load itself"))
break;

if (strstr(buf, "not regular file"))
break;

p = strstr(buf, "/");
if (p) {
int r;
@ -408,7 +411,7 @@ static int dracut_install(const char *src, const char *dst, bool isdir, bool res
}

if (ret == 0) {
if (resolvedeps) {
if (resolvedeps && S_ISREG(sb.st_mode) && (sb.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) {
log_debug("'%s' already exists, but checking for any deps", fulldstpath);
ret = resolve_deps(src);
} else