[rear-devel] [rear/rear] 75cae4: Update 400_save_directories.sh
noreply at github.com
Tue May 11 16:07:22 CEST 2021
Author: Johannes Meixner <jsmeix at suse.com>
Date: 2021-05-11 (Tue, 11 May 2021)
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