Ticket #69: permissions.diff

File permissions.diff, 0.9 kB (added by Jan-Nik, 6 months ago)

patch

  • makepackage

    old new  
    13141314        fi 
    13151315 
    13161316        # ********************************************************** 
     1317        #  5.0.2 Check file permissions 
     1318        # ********************************************************** 
     1319        # If there are any files which cannot be read by "others". 
     1320        oIFS="$IFS" 
     1321        IFS=$'\n' 
     1322        local found_symlinks 
     1323        for f in $(find "$payload_dir" -type f); do 
     1324                if [[ $(expr $(stat --format=%a $f) % 10) < 5 ]]; then 
     1325                        red; outn "WARNING: "; normal; out "Inappropriate permissions on $f, can't be read by others!"; 
     1326                fi 
     1327        done 
     1328        IFS="$oIFS" 
     1329 
     1330        # ********************************************************** 
    13171331        #  5.1. Generate install script 
    13181332        # ********************************************************** 
    13191333        # Get the install script from the specfile