From unknown Sun Jun 22 17:12:44 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4527: Emacs removes Extended Attributes when saving Reply-To: David Euresti , 4527@debbugs.gnu.org Resent-From: David Euresti Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 22 Sep 2009 20:50:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4527 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125365227525946 (code B ref -1); Tue, 22 Sep 2009 20:50:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Sep 2009 20:44:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8MKiXmR025943 for ; Tue, 22 Sep 2009 13:44:35 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqCDx-0006ig-JW for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 16:44:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqCDt-0006bP-14 for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 16:44:33 -0400 Received: from [199.232.76.173] (port=44444 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqCDs-0006bG-SQ for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 16:44:28 -0400 Received: from mx20.gnu.org ([199.232.41.8]:32010) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MqCDs-0000kL-DB for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 16:44:28 -0400 Received: from mail-yx0-f191.google.com ([209.85.210.191]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqCDq-0007zB-3y for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 16:44:26 -0400 Received: by yxe29 with SMTP id 29so140676yxe.14 for ; Tue, 22 Sep 2009 13:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=X7LqOHhOPQ8V5G2KBpLIXifctFiaiUqpBjgWnWsss+k=; b=oXdjEF0C9+xUutCGZfFYBfQr4vJ2pzGXkpmmGrDAkrNM3Ul79+XVjGakwevwOgKS0a sfo3kTRMuaM57ybgPFiIIWuqbJQL6M/hgpvNuHrOL2/MShI5m6Mi1SYWdxYzit9LZ38g r6g+TgqyElb1e894vYkjTreY+lzr2Z35a+1nU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kOVFMZFrbMSRPSml4yiHFUQZUu+lW8o4CU5rCmuCiiQXNUOQDNEz+/4XV4VzU5os6S 7La8y48SIw0mHGEREdP1wUZUqpjE2FrXq1OtHKh59koEo3jUwXMVWoC2SFtPdGZAbQLb CyhyrNg4p8HYvCqeaKK9Iuge9dFOwstINnH1o= MIME-Version: 1.0 Received: by 10.101.85.10 with SMTP id n10mr1501422anl.156.1253652261092; Tue, 22 Sep 2009 13:44:21 -0700 (PDT) Date: Tue, 22 Sep 2009 13:44:21 -0700 Message-ID: <95b3d0af0909221344h2746fc82w6e143d364577aa98@mail.gmail.com> From: David Euresti To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) When I edit a file that contains xattrs the xattrs are removed when I save the file inside of emacs. Example: $ touch a.txt $ xattr a.txt user.foo bar $ xattr -l a.txt user.foo: bar $ emacs a.txt add a line C-x C-s $ xattr -l a.txt You can get the xattr tool from http://pypi.python.org/packages/source/x/xattr/xattr-0.4.tar.gz Thanks, David If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/22.2/etc/DEBUG for instructions. In GNU Emacs 22.2.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-09-05 on yellow, modified by Ubuntu Windowing system distributor `The X.Org Foundation', version 11.0.10600000 configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: which-function-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: / b i n C-g C-x 3 C-x C-f ~ / p r o b e U t u t b e a / u t U t E x t t e n d M-x r e p o r t Recent messages: Making completion list... Loading help-mode...done Making completion list... [4 times] call-interactively: Beginning of buffer [2 times] call-interactively: End of buffer [2 times] call-interactively: Beginning of buffer Making completion list... Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done From unknown Sun Jun 22 17:12:44 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4527: Emacs removes Extended Attributes when saving Reply-To: Stefan Monnier , 4527@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 23 Sep 2009 22:45:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4527 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125374560531449 (code B ref -1); Wed, 23 Sep 2009 22:45:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Sep 2009 22:40:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8NMe38R031430 for ; Wed, 23 Sep 2009 15:40:04 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqaVH-0002aM-Dd for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 18:40:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqaVC-0002Yy-MZ for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 18:40:03 -0400 Received: from [199.232.76.173] (port=46829 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqaVC-0002Yo-Cs for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 18:39:58 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183]:38163 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqaVB-0002E3-RY for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 18:39:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsFAGNAukpFpYEz/2dsb2JhbACBUdVlhBsFh34 X-IronPort-AV: E=Sophos;i="4.44,440,1249272000"; d="scan'208";a="46454976" Received: from 69-165-129-51.dsl.teksavvy.com (HELO pastel.home) ([69.165.129.51]) by ironport2-out.pppoe.ca with ESMTP; 23 Sep 2009 18:39:56 -0400 Received: by pastel.home (Postfix, from userid 20848) id 80B60807A; Wed, 23 Sep 2009 18:39:56 -0400 (EDT) From: Stefan Monnier To: David Euresti Cc: 4527@debbugs.gnu.org, bug-gnu-emacs@gnu.org Message-ID: References: <95b3d0af0909221344h2746fc82w6e143d364577aa98@mail.gmail.com> Date: Wed, 23 Sep 2009 18:39:56 -0400 In-Reply-To: <95b3d0af0909221344h2746fc82w6e143d364577aa98@mail.gmail.com> (David Euresti's message of "Tue, 22 Sep 2009 13:44:21 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > When I edit a file that contains xattrs the xattrs are removed when I > save the file inside of emacs. You have to set backup-by-copying, otherwise the saved file is a new file (with a new inode). Of course, this also affects whether or not hardlinks get broken when saving a file, which may be what you want or may be what you don't want. Stefan From rgm@gnu.org Fri Oct 2 17:15:07 2009 Received: (at control) by emacsbugs.donarmstrong.com; 3 Oct 2009 00:15:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.5 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n930F5Nc028519 for ; Fri, 2 Oct 2009 17:15:06 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MtsHB-0002df-2y; Fri, 02 Oct 2009 20:15:05 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19142.38793.26660.496725@fencepost.gnu.org> Date: Fri, 2 Oct 2009 20:15:05 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: `1HVlPAe]oX58p&Mww>"vcHF148BX1RE=klf?{tlYoKADa1BE*zv