diff options
author | Alexander Bersenev <bay@hackerdom.ru> | 2011-08-21 20:37:22 +0000 |
---|---|---|
committer | Alexander Bersenev <bay@hackerdom.ru> | 2011-08-21 20:37:22 +0000 |
commit | d6a0e2e2675003043590bc414db899946bcb026a (patch) | |
tree | a9b0a619daebd6a84fe5e55aa92cc7878b9fbafd | |
parent | corrected paths to logging libraries (diff) | |
download | autodep-d6a0e2e2675003043590bc414db899946bcb026a.tar.gz autodep-d6a0e2e2675003043590bc414db899946bcb026a.tar.bz2 autodep-d6a0e2e2675003043590bc414db899946bcb026a.zip |
preparing for install
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | ebuild/app-portage/autodep/Manifest | 2 | ||||
-rw-r--r-- | ebuild/app-portage/autodep/autodep-0.1.ebuild (renamed from ebuild/autodep-0.1.ebuild) | 10 | ||||
-rw-r--r-- | src/hook_fusefs/hookfs.c | 17 |
4 files changed, 18 insertions, 12 deletions
@@ -18,6 +18,7 @@ install: mkdir -p "${DESTDIR}/usr/bin/" cp hookfs emerge_strict "${DESTDIR}/usr/bin/" + ln -s "${DESTDIR}/usr/lib/autodep/autodep" "${DESTDIR}/usr/bin/" clean: rm -f hookfs file_hook.o file_hook.so diff --git a/ebuild/app-portage/autodep/Manifest b/ebuild/app-portage/autodep/Manifest new file mode 100644 index 0000000..8220b2b --- /dev/null +++ b/ebuild/app-portage/autodep/Manifest @@ -0,0 +1,2 @@ +DIST autodep-0.1.tar.bz2 959691 RMD160 34ce8f8423d97d2f16599806c220579a65b0753a SHA1 4fe44158b9d81df43ea630d1d2f76dc8f0e9350b SHA256 ff34aaba6538c12bcd59378bf940729fbd4a115203ce97381ee6a0a1dd8974d0 +EBUILD autodep-0.1.ebuild 581 RMD160 05a90fb59f8eb36e69b399a8e0f5de4d6df1df87 SHA1 5a237eb30d35053106d07f539da47595b433659b SHA256 a7b44332fd34bfdea43b496c0712135d4ae86eab0ea80bce1c99d48c044e6710 diff --git a/ebuild/autodep-0.1.ebuild b/ebuild/app-portage/autodep/autodep-0.1.ebuild index 37ccfa7..9b126b6 100644 --- a/ebuild/autodep-0.1.ebuild +++ b/ebuild/app-portage/autodep/autodep-0.1.ebuild @@ -4,20 +4,24 @@ EAPI=3 -PYTHON_DEPEND='2:2.6' +PYTHON_DEPEND="2:2.6" RESTRICT_PYTHON_ABIS='2.4 2.5 3.*' -inherit distutils eutils +inherit python DESCRIPTION="Auto dependency analyser for Gentoo" HOMEPAGE="http://alexbers.dyndns.org/autodep/" -SRC_URI="http://alexbers.dyndns.org/autodep/${P}.tar.gz" +SRC_URI="http://alexbers.dyndns.org/autodep/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" +DEPEND="sys-fs/fuse" +RDEPEND="sys-fs/fuse + app-portage/portage-utils" + src_compile() { emake || die } diff --git a/src/hook_fusefs/hookfs.c b/src/hook_fusefs/hookfs.c index d6371dd..0bb3ce5 100644 --- a/src/hook_fusefs/hookfs.c +++ b/src/hook_fusefs/hookfs.c @@ -486,15 +486,14 @@ static int hookfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, snprintf(fullpath,MAXPATHLEN,"%s/%s",path,d->entry->d_name); char abspath[MAXPATHLEN]; - realpath(fullpath,abspath); - - if(! is_event_allowed("stat",abspath,context->pid,stage)) { - errno=2; - log_event("stat",abspath,"DENIED",errno,stage); - } else if (filler(buf, d->entry->d_name, &st, nextoff)) { - break; - } - + if(realpath(fullpath,abspath)!=NULL) { + if(! is_event_allowed("stat",abspath,context->pid,stage)) { + errno=2; + log_event("stat",abspath,"DENIED",errno,stage); + } else if (filler(buf, d->entry->d_name, &st, nextoff)) { + break; + } + } d->entry = NULL; d->offset = nextoff; } |