FreeBSD Bugzilla – Attachment 5419 Details for
Bug 12967
File permissions after timezone changing with "tzsetup"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 546 bytes, created by
Udo Schweigert
on 1999-08-04 18:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Udo Schweigert
Created:
1999-08-04 18:30:01 UTC
Size:
546 bytes
patch
obsolete
>--- tzsetup.c Sun May 2 08:18:53 1999 >+++ /tmp/tzsetup.c Tue Aug 3 06:46:58 1999 >@@ -499,6 +499,7 @@ > > if (reallydoit) { > if (copymode) { >+ mode_t old_mask; > fd1 = open(filename, O_RDONLY, 0); > if (fd1 < 0) { > asprintf(&msg, "Could not open %s: %s", >@@ -509,9 +510,11 @@ > } > > unlink(_PATH_LOCALTIME); >+ old_mask = umask(022); > fd2 = open(_PATH_LOCALTIME, > O_CREAT | O_EXCL | O_WRONLY, > 0444); >+ umask(old_mask); > if (fd2 < 0) { > asprintf(&msg, "Could not open " > _PATH_LOCALTIME ": %s",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12967
: 5419