Skip to content
  • Eli Schwartz's avatar
    makepkg: protect against unexpected whitespace in filenames · a745d97c
    Eli Schwartz authored and Allan McRae's avatar Allan McRae committed
    
    
    zipman:
    
    read -r protects against those evil manpages whose filenames contain
    backslash escapes, (muahahaha?)
    
    IFS= read protects against filenames with:
    
    - leading whitespace (but no one is actually stupid enough to configure
      their MAN_DIRS=() in makepkg.conf with such silly directories, *right*?)
    
    - trailing whitespace (but likewise, no one should be stupid enough to
      write an uncompressed manpage for section '1 ' or something)
    
    Also fix several other cases where we read filenames without protecting
    against surrounding whitespace, or without using null-delimited
    filenames when we could trivially do so.
    
    Signed-off-by: default avatarEli Schwartz <eschwartz@archlinux.org>
    Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
    a745d97c