emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs doesn't preserve the file access permission.


From: Hiroshi Fujishima
Subject: Emacs doesn't preserve the file access permission.
Date: Sat, 01 Jan 2005 20:15:34 +0900
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (usg-unix-v)

Hi, 

Editing a file with Emacs doesn't preserve the file's permission.

% mkdir temporally-working-directory
% cd temporally-working-directory
% umask
022
% touch x
% chmod 600 x
% ls -l
total 0
-rw-------  1 pooh staff 0 Jan  1 19:54 x
% emacs x
% ls -l
total 1
-rw-r--r--  1 pooh staff 21 Jan  1 19:55 x
-rw-------  1 pooh staff  0 Jan  1 19:54 x~

I expect ``-rw------- 1 pooh staff 21 Jan 1 19:55 x'', not
``-rw-r--r-- 1 pooh staff 21 Jan 1 19:55 x''.

In GNU Emacs 21.3.50.1 (sparc-sun-solaris2.9, X toolkit, Xaw3d scroll bars)
 of 2004-12-31 on alex
configured using `configure '--prefix=/usr/local/emacs' 
'--x-includes=/usr/local/include' '--x-libraries=/usr/local/lib' 
'--without-xim' 'CC=ccache gcc''

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: ja
  locale-coding-system: japanese-iso-8bit
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  iswitchb-mode: t
  show-paren-mode: t
  encoded-kbd-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
ESC x g n u s RET ESC x r e p o r TAB RET

Recent messages:
Reading active file via nnml...done
Reading active file from archive via nnfolder...
Opening nnfolder server on archive...done
Reading active file from archive via nnfolder...done
No new newsgroups
Checking new news...done
Loading gnus-topic...done
No Gnus is good news
No more unread newsgroups
Loading emacsbug...done

-- 
Hiroshi Fujishima




reply via email to

[Prev in Thread] Current Thread [Next in Thread]