]> rtime.felk.cvut.cz Git - novaboot.git/commit
Copy files to TFTP server with default permissions
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 12 Apr 2021 06:26:00 +0000 (08:26 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 12 Apr 2021 06:26:00 +0000 (08:26 +0200)
commite693830a9bb540aa192ea13bbc50d3d798ae46d3
treee6f265da69b692557b8cbe2174282d5059ae9b4d
parent020a8f8cd7e597aa8e050bb6e24627e2e074a82e
Copy files to TFTP server with default permissions

Previously, we used rsync's --perm option to mirror source permissions
at target. This could have caused the files to be inaccessible by the
TFTP server, because source permissions were to tight. To overcome
this problem, we now always set the target permissions to the default
value by using --chmod. From rsync manual:

    To give new files the destination-default permissions (while
    leaving existing files unchanged), make sure that the --perms
    option is off and use --chmod=ugo=rwX.

Note that this change does not require changes on the server
side (novaboot-shell).
novaboot