Copied yaffs direct files are now read only.
authorTimothy Manning <codedraftsman@gmail.com>
Fri, 6 Aug 2021 02:43:05 +0000 (14:43 +1200)
committerTimothy Manning <codedraftsman@gmail.com>
Fri, 6 Aug 2021 02:47:02 +0000 (14:47 +1200)
Signed-off-by: Timothy Manning <codedraftsman@gmail.com>
direct/handle_common.sh

index f46ee531339240ef78d0b461ac447c48510bb850..28edb6f8d35c4ad359833debeb6a98f1c316ccff 100755 (executable)
@@ -34,6 +34,8 @@ set -e -x
                -e "s/strncmp/yaffs_strncmp/g"\
                -e "s/loff_t/Y_LOFF_T/g" \
                 >$i
+
+               chmod 0444 $i
        done
 elif [ "$1" = "clean" ] ; then 
        for i in $YAFFS_COMMON_SOURCES ; do