[rear-devel] [rear/rear] 75cae4: Update 400_save_directories.sh

Johannes Meixner noreply at github.com
Tue May 11 16:07:22 CEST 2021


  Branch: refs/heads/jsmeix-also-exclude-below-autofs
  Home:   https://github.com/rear/rear
  Commit: 75cae46a7eada78e44a91a2b481f2e065a43e964
      https://github.com/rear/rear/commit/75cae46a7eada78e44a91a2b481f2e065a43e964
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M usr/share/rear/prep/default/400_save_directories.sh

  Log Message:
  -----------
  Update 400_save_directories.sh

Fixed detection when a directory is already listed in the directories_permissions_owner_group file:
Before it was: grep "^$directory" "$directories_permissions_owner_group_file" 1>&2
Now it is: grep -q "^$directory " "$directories_permissions_owner_group_file"
The crucial change is the added trailing space in "^$directory " that avoids
e.g. '/foo' is found when only '/foobar ...' is already listed in that file.
Fortunarely the directories in FHSdirectories are properly sorted
so that things worked well by luck.




More information about the rear-devel mailing list