Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f58afc72
Commit
f58afc72
authored
Mar 12, 2013
by
Paul Eggert
Browse files
* movemail.c (main): Call umask on all systems.
This is OK since Emacs already assumes umask elsewhere.
parent
5615c9a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
lib-src/ChangeLog
lib-src/ChangeLog
+5
-0
lib-src/movemail.c
lib-src/movemail.c
+0
-4
No files found.
lib-src/ChangeLog
View file @
f58afc72
2013-03-13 Paul Eggert <eggert@cs.ucla.edu>
* movemail.c (main): Call umask on all systems.
This is OK since Emacs already assumes umask elsewhere.
2013-02-08 Paul Eggert <eggert@cs.ucla.edu>
* movemail.c (getenv): Remove decl (unused since 1994).
...
...
lib-src/movemail.c
View file @
f58afc72
...
...
@@ -380,13 +380,9 @@ main (int argc, char **argv)
if
(
indesc
<
0
)
pfatal_with_name
(
inname
);
#ifdef BSD_SYSTEM
/* In case movemail is setuid to root, make sure the user can
read the output file. */
/* This is desirable for all systems
but I don't want to assume all have the umask system call */
umask
(
umask
(
0
)
&
0333
);
#endif
/* BSD_SYSTEM */
outdesc
=
open
(
outname
,
O_WRONLY
|
O_CREAT
|
O_EXCL
,
0666
);
if
(
outdesc
<
0
)
pfatal_with_name
(
outname
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment