#! /bin/bash
# $Header: /global/src/etc/cl-manage-scripts/patches/RCS/P-passwd-r,v 1.1 2025/03/21 15:19:26 mas90 Exp $
#
# command to disable the use of NetworkManager, called by /usr/bin/cl-patch-file
# Called with a single argument, the file to be edited
#
# e.g. Citrix XenServer Host 5.5.0-15119p
# patch-file distmatches = itrix..en.erver
# patch-file operation = shell
# Process using /usr/bin/cl-patch-file unless matching the above

# Don't set $file, or it will report having patched it every time
cl_patch_file_File=/etc/passwd
find $cl_patch_file_File ! -perm -0444 -ls -exec chmod a+r {} \;
