Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix custom mount point in triage archive #190

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions uac
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ if ${TAR_TOOL_AVAILABLE}; then
sort_uniq_file "${TEMP_DATA_DIR}/.files.tmp" 2>>"${UAC_STDERR_LOG_FILE}"
if ${ua_temp_data_dir_symlink_support}; then
# create symbolic link to /
ln -s "/" "${TEMP_DATA_DIR}/[root]" 2>>"${UAC_STDERR_LOG_FILE}"
ln -s "${MOUNT_POINT}" "${TEMP_DATA_DIR}/[root]" 2>>"${UAC_STDERR_LOG_FILE}"
else
# copy files to uac-data.tmp/[root]
printf %b "Copying files to ${TEMP_DATA_DIR}/[root]. Please wait...\n"
Expand All @@ -785,7 +785,7 @@ if ${TAR_TOOL_AVAILABLE}; then
fi
# add [root] string to the beginning of each entry in .files.tmp
# and add them to the list of files to be archived within the output file
sed -e 's:^/:\[root\]/:' "${TEMP_DATA_DIR}/.files.tmp" \
sed -e "s:^${MOUNT_POINT%/}/:\[root\]/:" "${TEMP_DATA_DIR}/.files.tmp" \
>>"${TEMP_DATA_DIR}/.output_file.tmp"
fi

Expand Down