Skip to content

Commit

Permalink
Merge pull request #190 from maxspl/mount-point-fix
Browse files Browse the repository at this point in the history
fix: fix custom mount point in triage archive
  • Loading branch information
tclahr authored Jan 7, 2024
2 parents 0551d9b + 1316c9a commit 1583c0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uac
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ if command_exists "tar"; 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 @@ -797,7 +797,7 @@ if command_exists "tar"; 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

0 comments on commit 1583c0f

Please sign in to comment.