From: "Александр Берсенев" <bay@hackerdom.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/autodep:master commit in: /, ebuild/, ebuild/app-portage/autodep/, src/hook_fusefs/
Date: Sun, 21 Aug 2011 14:38:40 +0000 (UTC) [thread overview]
Message-ID: <d6a0e2e2675003043590bc414db899946bcb026a.bay@gentoo> (raw)
commit: d6a0e2e2675003043590bc414db899946bcb026a
Author: Alexander Bersenev <bay <AT> hackerdom <DOT> ru>
AuthorDate: Sun Aug 21 20:37:22 2011 +0000
Commit: Александр Берсенев <bay <AT> hackerdom <DOT> ru>
CommitDate: Sun Aug 21 20:37:22 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/autodep.git;a=commit;h=d6a0e2e2
preparing for install
---
Makefile | 1 +
ebuild/app-portage/autodep/Manifest | 2 ++
.../{ => app-portage/autodep}/autodep-0.1.ebuild | 10 +++++++---
src/hook_fusefs/hookfs.c | 17 ++++++++---------
4 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/Makefile b/Makefile
index 88d9363..01c92f1 100644
--- a/Makefile
+++ b/Makefile
@@ -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
similarity index 71%
rename from ebuild/autodep-0.1.ebuild
rename to 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;
}
reply other threads:[~2011-08-21 14:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d6a0e2e2675003043590bc414db899946bcb026a.bay@gentoo \
--to=bay@hackerdom.ru \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox