[Mutt] #3201: mutt-1.5.16: Saving attachments within mutt doesn't work well with POSIX ACLs.
#3201: mutt-1.5.16: Saving attachments within mutt doesn't work well with POSIX
ACLs.
--------------------------------------------------+-------------------------
Reporter: matt+bugzilla@xxxxxxxxxxxxxxxxxxxxx | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: mutt | Version:
Resolution: fixed | Keywords:
--------------------------------------------------+-------------------------
{{{
Package: mutt
Version: 1.5.16
Severity: normal
-- Please type your report below this line
When saving an attachment from within mutt into a directory that has a
default ACL, the effective permissions don't take effect. I think this is
a
problem with mutt as other utilities (e.g., 'touch') take on the proper
effective permissions.
Here's an example... Below is the output of getfacl on the directory with
a
default ACL, and two test files. One of the test files was an attachment
saved
from within mutt, the other was created with touch. Both operations were
done
from within the directory possessing the default ACL.
*** DIRECTORY ***
# file: .
# owner: jcdenton
# group: jcdenton
user::rwx
user:apache:--x
group::---
mask::--x
other::---
default:user::rwx
default:user:apache:r-x
default:group::---
default:mask::r-x
default:other::---
*** CREATED BY 'touch' ***
# file: test.html
# owner: jcdenton
# group: jcdenton
user::rw-
user:apache:r-x #effective:r--
group::---
mask::r--
other::---
*** CREATED BY 'mutt' ***
# file: test2.html
# owner: jcdenton
# group: jcdenton
user::rw-
user:apache:r-x #effective:---
group::---
mask::---
other::---
Notice how the file created by mutt lacks effective read permission.
Any help you can provide would be greatly appreciated!
Thanks.
-- System Information
System Version: Linux masterchief 2.6.18-xen #1 SMP Tue Feb 12 06:40:50
UTC 2008 x86_64 Dual-Core AMD Opteron(tm) Processor 2212 AuthenticAMD
GNU/Linux
-- Build environment information
(Note: This is the build environment installed on the system
muttbug is run on. Information may or may not match the environment
used to build mutt.)
- gcc version information
x86_64-pc-linux-gnu-gcc
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-
devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-
include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-
checking --disable-werror --enable-secureplt --enable-multilib --enable-
libmudflap --disable-libssp --disable-libgcj --enable-
languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
- CFLAGS
-Wall -pedantic -O2 -pipe
-- Mutt Version Information
Mutt 1.5.16 (2007-06-09)
Copyright (C) 1996-2007 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.
System: Linux 2.6.18-xen (x86_64)
ncurses: ncurses 5.6.20061217 (compiled with 5.6)
Compile options:
-DOMAIN
-DEBUG
+HOMESPOOL -USE_SETGID +USE_DOTLOCK +DL_STANDALONE
-USE_FCNTL +USE_FLOCK -USE_INODESORT
-USE_POP -USE_IMAP -USE_SMTP -USE_GSS -USE_SSL_OPENSSL
-USE_SSL_GNUTLS -USE_SASL -HAVE_GETADDRINFO
-HAVE_REGCOMP +USE_GNU_REGEX
+HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
+HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM
+CRYPT_BACKEND_CLASSIC_PGP -CRYPT_BACKEND_CLASSIC_SMIME
-CRYPT_BACKEND_GPGME
-EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS -LOCALES_HACK +COMPRESSED +HAVE_WC_FUNCS
+HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS -HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="Maildir"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc/mutt"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
To report a bug, please visit http://bugs.mutt.org/.
patch-1.5.6.dw.pgp-timeout.1
patch-1.5.6.dw.mbox-hook.1
patch-1.5.16.rr.compressed.1
patch-1.5.4.lpr.collapse_flagged Lukas P. Ruf <lukas.ruf@xxxxxx>
--- Begin /etc/mutt/Muttrc
set mbox_type=Maildir
set folder=~/.maildir
set spoolfile=~/.maildir/
set record=~/.maildir-sent/
set move=no
set index_format="%4C %Z %{%b %d} %-16.16L %s"
--- End /etc/mutt/Muttrc
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3201>
Mutt <http://www.mutt.org/>
The Mutt mail user agent