summaryrefslogtreecommitdiff
path: root/Kernel/sync.sh
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-29 04:55:08 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-29 04:55:08 +0100
commitc30e2c8d440de7a8abbc1935cb5fb79b82d3421f (patch)
tree6ddae2118d2eec002f0327ff30d5a792828f3002 /Kernel/sync.sh
parentad53f6afd3de86fa927a2f8cdacdcbf5134af916 (diff)
downloadserenity-c30e2c8d440de7a8abbc1935cb5fb79b82d3421f.zip
Implement basic chmod() syscall and /bin/chmod helper.
Only raw octal modes are supported right now. This patch also changes mode_t from 32-bit to 16-bit to match the on-disk type used by Ext2FS. I also ran into EPERM being errno=0 which was confusing, so I inserted an ESUCCESS in its place.
Diffstat (limited to 'Kernel/sync.sh')
-rwxr-xr-xKernel/sync.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/sync.sh b/Kernel/sync.sh
index 429515b955..ae578d2fdd 100755
--- a/Kernel/sync.sh
+++ b/Kernel/sync.sh
@@ -50,6 +50,7 @@ cp -v ../Userland/guitest2 mnt/bin/guitest2
cp -v ../Userland/sysctl mnt/bin/sysctl
cp -v ../Terminal/Terminal mnt/bin/Terminal
cp -v ../Userland/dmesg mnt/bin/dmesg
+cp -v ../Userland/chmod mnt/bin/chmod
sh sync-local.sh
cp -v kernel.map mnt/
ln -s dir_a mnt/dir_cur