chmod $mode, $file unless -l $file;