chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #1634: copy-file and move-file do not preserve permis


From: Chicken Trac
Subject: [Chicken-janitors] #1634: copy-file and move-file do not preserve permissions
Date: Mon, 15 Jul 2019 06:01:56 -0000

#1634: copy-file and move-file do not preserve permissions
----------------------------+--------------------------------
 Reporter:  alicemaz        |                 Owner:
     Type:  defect          |                Status:  new
 Priority:  minor           |             Milestone:  someday
Component:  core libraries  |               Version:  5.1.0
 Keywords:                  |  Estimated difficulty:  easy
----------------------------+--------------------------------
 both procedures create a new output file using open, so permissions are
 always (assuming normal umask) 644. this patch sets the permissions to
 those of the input file after writing all bytes and before closing the
 ports. tested on PLATFORM=linux. I do not know the implications of this on
 windows; the fact that C_chmod and C_fchmod have definitions in
 posixwin.scm makes me assume this is safe, but I cannot be sure without a
 machine to test on

--
Ticket URL: <https://bugs.call-cc.org/ticket/1634>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]