From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Recursive copies in Dired do not preserve directory permissions Date: Sat, 20 Oct 2007 15:48:29 +0200 Message-ID: <874pgldhhu.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192888125 709 80.91.229.12 (20 Oct 2007 13:48:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 13:48:45 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 20 15:48:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IjEgz-0005qL-NO for ged-emacs-devel@m.gmane.org; Sat, 20 Oct 2007 15:48:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjEgs-0006Tv-2Z for ged-emacs-devel@m.gmane.org; Sat, 20 Oct 2007 09:48:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjEfj-0005Wa-NZ for emacs-devel@gnu.org; Sat, 20 Oct 2007 09:47:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjEfe-0005RD-Jz for emacs-devel@gnu.org; Sat, 20 Oct 2007 09:47:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjEfe-0005R6-6K for emacs-devel@gnu.org; Sat, 20 Oct 2007 09:47:18 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjEfd-0007fX-LT for emacs-devel@gnu.org; Sat, 20 Oct 2007 09:47:17 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjEfd-0006o7-AJ for emacs-pretest-bug@gnu.org; Sat, 20 Oct 2007 09:47:17 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IjEfZ-0007dI-6R for emacs-pretest-bug@gnu.org; Sat, 20 Oct 2007 09:47:16 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IjEfY-0007ce-IR for emacs-pretest-bug@gnu.org; Sat, 20 Oct 2007 09:47:12 -0400 Original-Received: (qmail invoked by alias); 20 Oct 2007 13:47:10 -0000 Original-Received: from p5486596C.dip.t-dialin.net (EHLO debian) [84.134.89.108] by mail.gmx.net (mp057) with SMTP; 20 Oct 2007 15:47:10 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1/cmwge1QrcY2f43eugiGM7ksEJIrosNUUo4d6IoP /WxPBlRTQZE5qn User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81297 gmane.emacs.pretest.bugs:20176 Archived-At: It seems that recursive copies in Dired lose directory permissions: ,---- | $ ls -ld .config; ls -l .config | drwx------ 4 sven sven 4096 Apr 15 2007 .config | total 8 | drwx------ 2 sven sven 4096 Oct 17 20:53 gtk-2.0 | drwx------ 2 sven sven 4096 Mar 3 2006 menus `---- After recursively copying .config into a directory named tmp: ,---- | $ ls -ld tmp/.config; ls -l tmp/.config | drwxr-xr-x 4 sven sven 4096 Oct 20 15:37 tmp/.config | total 8 | drwxr-xr-x 2 sven sven 4096 Oct 20 15:37 gtk-2.0 | drwxr-xr-x 2 sven sven 4096 Oct 20 15:37 menus `---- The new permissions are 775, matching my umask (022). In GNU Emacs 22.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.10.13) of 2007-10-13 on debian, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-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/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/22.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1.50/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1.50/leim' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C 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: de_DE.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Buffer Menu Minor modes in effect: shell-dirtrack-mode: t display-time-mode: t auto-image-file-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: l R SPC . c o n f i g C-x o g C y e s C-x o M-p t m p / t m p ( / M-p M-p M-p M-p M-x r e p o r t - e m Recent messages: Directory has changed on disk; type g to update Dired line-move-1: Beginning of buffer Copy: 1 of 1 Copy: 1 file History item: 1 [2 times] History item: 2 History item: 1 History item: 2 Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help. Loading emacsbug...done