Copied yaffs direct files are now read only.
[yaffs2.git] / 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
                -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
        done
 elif [ "$1" = "clean" ] ; then 
        for i in $YAFFS_COMMON_SOURCES ; do