Opened 7 months ago

Closed 6 months ago

#1698 closed change request (fixed)

Use 0666 as the default file mode in "file-open" from the chicken.file.posix module

Reported by: evhan Owned by:
Priority: minor Milestone: someday
Component: core libraries Version: 5.2.0
Keywords: Cc:
Estimated difficulty: trivial

Description (last modified by evhan)

Currently, using file-open without the optional mode argument uses a default mode of 0744. We should rather use 0666 as the default mode to align with the procedures that create files with fopen(3).

From: https://lists.nongnu.org/archive/html/chicken-hackers/2020-05/msg00021.html

Attachments (2)

0001-Use-0666-as-default-file-open-mode.patch (3.6 KB) - added by evhan 7 months ago.
0001-Use-0666-as-default-file-open-mode.2.patch (3.4 KB) - added by wasamasa 7 months ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 months ago by evhan

Description: modified (diff)

Patch attached above, and announced on the mailing list.

Last edited 7 months ago by evhan (previous) (diff)

comment:2 Changed 7 months ago by wasamasa

Thanks, I've added the equivalent scsh-process patch.

comment:3 Changed 7 months ago by sjamaan

Fixed in scsh-process 1.6.0

comment:4 Changed 6 months ago by felix winkelmann

Resolution: fixed
Status: newclosed

The core patch has been applied.

Note: See TracTickets for help on using tickets.