From 935ce8d08b32721210efc13628bf6f8c1fbc8223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 23 Jun 2014 11:46:58 +0200 Subject: [PATCH] Fixed inappropriate description of ntfs_build_basic_posix() (cosmetic) Fixed a missing description and wrongly copied+pasted comment --- libntfs-3g/acls.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libntfs-3g/acls.c b/libntfs-3g/acls.c index dad91420..51a7e7f5 100644 --- a/libntfs-3g/acls.c +++ b/libntfs-3g/acls.c @@ -1303,6 +1303,11 @@ struct POSIX_SECURITY *ntfs_replace_acl(const struct POSIX_SECURITY *oldpxdesc, return (newpxdesc); } +/* + * Build a basic Posix ACL from a mode and umask, + * ignoring inheritance from the parent directory + */ + struct POSIX_SECURITY *ntfs_build_basic_posix( const struct POSIX_SECURITY *pxdesc __attribute__((unused)), mode_t mode, mode_t mask, BOOL isdir __attribute__((unused))) @@ -1313,11 +1318,6 @@ struct POSIX_SECURITY *ntfs_build_basic_posix( pydesc = (struct POSIX_SECURITY*)malloc( sizeof(struct POSIX_SECURITY) + 3*sizeof(struct POSIX_ACE)); if (pydesc) { - /* - * Copy inherited tags and adapt perms - * Use requested mode, ignoring umask - * (not possible with older versions of fuse) - */ pyace = &pydesc->acl.ace[0]; pyace->tag = POSIX_ACL_USER_OBJ; pyace->perms = ((mode & ~mask) >> 6) & 7;