Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
October 29, 2009 [Issue 3447] New: std.file uses unconventional file permissions | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3447 Summary: std.file uses unconventional file permissions Product: D Version: 2.035 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: bugzilla@kyllingen.net --- Comment #0 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2009-10-29 04:03:55 PDT --- The Posix version of std.file.write() creates files with the permission 0660. I think most users will expect it to be the conventional 0666, which is the default for the C fopen() function. std.file.copy() also uses 0660, whereas the Posix cp command preserves the permissions of the source file (as well as ownership and timestamps). The security aspect should be taken care of by the process' umask, which in the vast majority of cases will be 0022. (The resulting file will then have permissions 0644.) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 29, 2009 [Issue 3447] std.file uses unconventional file permissions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars T. Kyllingstad | http://d.puremagic.com/issues/show_bug.cgi?id=3447 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei@metalanguage.com AssignedTo|nobody@puremagic.com |andrei@metalanguage.com --- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2009-10-29 06:04:42 PDT --- Good catch, thanks. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 29, 2009 [Issue 3447] std.file uses unconventional file permissions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars T. Kyllingstad | http://d.puremagic.com/issues/show_bug.cgi?id=3447 --- Comment #2 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2009-10-29 06:21:23 PDT --- I just grepped through all of Phobos for "0660", and I see that the std.mmfile module also uses these permissions. I'm not sure whether this should be changed, though, because I haven't really used memory-mapped files and don't know how they are used. Just thought I should mention it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 14, 2010 [Issue 3447] std.file uses unconventional file permissions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars T. Kyllingstad | http://d.puremagic.com/issues/show_bug.cgi?id=3447 Lars T. Kyllingstad <bugzilla@kyllingen.net> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|andrei@metalanguage.com |bugzilla@kyllingen.net --- Comment #3 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2010-06-14 03:59:33 PDT --- http://www.dsource.org/projects/phobos/changeset/1639 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 11, 2010 [Issue 3447] std.file uses unconventional file permissions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lars T. Kyllingstad | http://d.puremagic.com/issues/show_bug.cgi?id=3447 Lars T. Kyllingstad <bugzilla@kyllingen.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Lars T. Kyllingstad <bugzilla@kyllingen.net> 2010-08-11 02:44:40 PDT --- Fixed DMD 2.048 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation