commit:     50541bc7785a3b7205373b977f1f0863d4ee31f6
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  7 00:11:43 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Nov  7 00:28:46 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50541bc7

sys-fs/ntfs3g: actually make USE=suid do something

Bug: https://bugs.gentoo.org/822024
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 .../{ntfs3g-2021.8.22-r1.ebuild => ntfs3g-2021.8.22-r2.ebuild}     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-fs/ntfs3g/ntfs3g-2021.8.22-r1.ebuild 
b/sys-fs/ntfs3g/ntfs3g-2021.8.22-r2.ebuild
similarity index 94%
rename from sys-fs/ntfs3g/ntfs3g-2021.8.22-r1.ebuild
rename to sys-fs/ntfs3g/ntfs3g-2021.8.22-r2.ebuild
index 32829cd24d9..fa4b403451e 100644
--- a/sys-fs/ntfs3g/ntfs3g-2021.8.22-r1.ebuild
+++ b/sys-fs/ntfs3g/ntfs3g-2021.8.22-r2.ebuild
@@ -75,7 +75,12 @@ src_configure() {
 
 src_install() {
        default
-       use mount-ntfs && dosym mount.ntfs-3g /sbin/mount.ntfs
+       if use suid; then
+               fperms u+s /usr/bin/ntfs-3g
+       fi
+       if use mount-ntfs; then
+               dosym mount.ntfs-3g /sbin/mount.ntfs
+       fi
        find "${ED}" -name '*.la' -type f -delete || die
        # https://bugs.gentoo.org/760780
        keepdir "/usr/$(get_libdir)/ntfs-3g"

Reply via email to