diff options
| author | Shulhan <ms@kilabit.info> | 2026-02-15 13:44:39 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-02-15 13:45:38 +0700 |
| commit | 83a162bfa6e6eba78ae439e193682c19b9cd4744 (patch) | |
| tree | 8588115d422a34aeaefa22e759ef1f19d992784f /CHANGELOG.adoc | |
| parent | 19d58e9a4c900aec1d63de45a655657c760b1235 (diff) | |
| download | awwan-83a162bfa6e6eba78ae439e193682c19b9cd4744.tar.xz | |
all: fix chmod/chown if destination is directory
Given the following command
#put!+0644 src/file dst/
If the dst is a directory, it would cause the directory permission
changes to 0644.
This changes fix it by checking if the destination is a directory first.
If we cannot stat the dst, skip the chmod/chown command.
Diffstat (limited to 'CHANGELOG.adoc')
| -rw-r--r-- | CHANGELOG.adoc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 7cb4910..bf40fea 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -34,6 +34,17 @@ Using parameters is acceptable only for 2 to 3 arguments. The `-shutdown-idle` option set the duration when the "serve" command will stop accepting new connections and shutting down the HTTP server. +**🌼 all: fix chmod/chown if destination is directory** + +Given the following command + + #put!+0644 src/file dst/ + +If the dst is a directory, it would cause the directory permission +changes to 0644. +This changes fix it by checking if the destination is a directory first. +If we cannot stat the dst, skip the chmod/chown command. + [#v0_13_1] == awwan v0.13.1 (2026-02-09) |
