Home | History | Annotate | Download | only in mac

Lines Matching refs:symlink

124 # Returns 0 (true) if |symlink| exists, is a symbolic link, and appears
129 local symlink="${1}"
132 link_mode="$(stat -f %Sp "${symlink}" 2> /dev/null || true)"
138 link_user="$(stat -f %u "${symlink}" 2> /dev/null || true)"
139 link_group="$(stat -f %g "${symlink}" 2> /dev/null || true)"
177 # If |symlink| exists and is a symbolic link, but is not writable according to
179 # writable symbolic link. If |symlink| does not exist, is not a symbolic
183 local symlink="${1}"
185 if [[ -L "${symlink}" ]] && ! is_writable_symlink "${symlink}"; then
186 # If ${symlink} refers to a directory, doing this naively might result in
203 target="$(readlink "${symlink}" 2> /dev/null || true)"
218 symlink_dir="$(dirname "${symlink}")"
223 temp_link="${temp_link_dir}/$(basename "${symlink}")"
274 local symlink
275 while IFS= read -r -d $'\0' symlink; do
276 ensure_writable_symlink "${symlink}"