Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!mips!apple!oracle!news From: nhess@dvlseq.oracle.com (Nate Hess) Newsgroups: gnu.emacs Subject: Re: umask Message-ID: <1990Feb28.202706.5878@oracle.com> Date: 28 Feb 90 20:27:06 GMT References: Sender: news@oracle.com Reply-To: nhess@dvlseq.oracle.com (Nate Hess) Distribution: gnu Organization: Oracle Corporation, Belmont, CA Lines: 21 In-reply-to: armin@nmpcad.se (Armin Seidel) Posting-Front-End: Gnews 2.0 In article , armin@nmpcad (Armin Seidel) writes: >I am wondering wether it is possible in emacs to define the UNIX file >creation mode mask. On our Apollo system, emacs creates and saves >files with rw-rw-rw- ignoring the files' original protection rights >and my umask setting. If you'll look in {...}/src/fileio.c, you'll notice a line or two that look something like fd = creat (name, 0666); You could add code that would replace the 0666 with your current umask, and then recompile. --woodstock -- "What I like is when you're looking and thinking and looking and thinking...and suddenly you wake up." - Hobbes nhess@oracle.com or ...!uunet!oracle!nhess or (415) 598-3046