=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== borgbackup-1.1.14/scripts/shell_completions/zsh/_borg-1121- [[ -n $ISUFFIX ]] && compstate[to_end]='' borgbackup-1.1.14/scripts/shell_completions/zsh/_borg:1122: # NOTE: `[[ -n $ISUFFIX ]]` is a workarond for a bug that causes cursor movement to the right further than it should borgbackup-1.1.14/scripts/shell_completions/zsh/_borg-1123- # NOTE: the _oldlist completer doesn't respect compstate[to_end]='' ############################################## borgbackup-1.1.14/scripts/shell_completions/bash/borg-157- if [[ ${COMP_LINE} =~ ^.*\ diff\ .*::[^\ ]+\ ${cur}$ ]] ; then borgbackup-1.1.14/scripts/shell_completions/bash/borg:158: repository_name=`expr match "${COMP_LINE}" "\(.*\)::"` borgbackup-1.1.14/scripts/shell_completions/bash/borg-159- repository_name=${repository_name##* } ############################################## borgbackup-1.1.14/docs/usage/general/environment.rst.inc-20- passphrase should be initially set when initializing an encrypted repo. Note that the command borgbackup-1.1.14/docs/usage/general/environment.rst.inc:21: is executed without a shell. So variables, like ``$HOME`` will work, but ``~`` won't. borgbackup-1.1.14/docs/usage/general/environment.rst.inc-22- If BORG_PASSPHRASE is also set, it takes precedence. ############################################## borgbackup-1.1.14/docs/usage/general/environment.rst.inc-97- BORG_BASE_DIR borgbackup-1.1.14/docs/usage/general/environment.rst.inc:98: Defaults to ``$HOME`` or ``~$USER`` or ``~`` (in that order). borgbackup-1.1.14/docs/usage/general/environment.rst.inc-99- If you want to move all borg-specific folders to a custom path at once, all you need to do is ############################################## borgbackup-1.1.14/docs/usage/general/environment.rst.inc-102- BORG_CACHE_DIR borgbackup-1.1.14/docs/usage/general/environment.rst.inc:103: Defaults to ``$BORG_BASE_DIR/.cache/borg``. If ``BORG_BASE_DIR`` is not explicitly set while borgbackup-1.1.14/docs/usage/general/environment.rst.inc:104: `XDG env var`_ ``XDG_CACHE_HOME`` is set, then ``$XDG_CACHE_HOME/borg`` is being used instead. borgbackup-1.1.14/docs/usage/general/environment.rst.inc-105- This directory contains the local cache and might need a lot ############################################## borgbackup-1.1.14/docs/usage/general/environment.rst.inc-108- BORG_CONFIG_DIR borgbackup-1.1.14/docs/usage/general/environment.rst.inc:109: Defaults to ``$BORG_BASE_DIR/.config/borg``. If ``BORG_BASE_DIR`` is not explicitly set while borgbackup-1.1.14/docs/usage/general/environment.rst.inc:110: `XDG env var`_ ``XDG_CONFIG_HOME`` is set, then ``$XDG_CONFIG_HOME/borg`` is being used instead. borgbackup-1.1.14/docs/usage/general/environment.rst.inc-111- This directory contains all borg configuration directories, see the FAQ ############################################## borgbackup-1.1.14/docs/usage/general/environment.rst.inc-113- BORG_SECURITY_DIR borgbackup-1.1.14/docs/usage/general/environment.rst.inc:114: Defaults to ``$BORG_CONFIG_DIR/security``. borgbackup-1.1.14/docs/usage/general/environment.rst.inc-115- This directory contains information borg uses to track its usage of NONCES ("numbers used ############################################## borgbackup-1.1.14/docs/usage/general/environment.rst.inc-117- BORG_KEYS_DIR borgbackup-1.1.14/docs/usage/general/environment.rst.inc:118: Defaults to ``$BORG_CONFIG_DIR/keys``. borgbackup-1.1.14/docs/usage/general/environment.rst.inc-119- This directory contains keys for encrypted repositories. ############################################## borgbackup-1.1.14/docs/development.rst-318-- Check that Travis CI is happy. borgbackup-1.1.14/docs/development.rst:319:- Update ``CHANGES.rst``, based on ``git log $PREVIOUS_RELEASE..``. borgbackup-1.1.14/docs/development.rst-320-- Check version number of upcoming release in ``CHANGES.rst``. ############################################## borgbackup-1.1.14/docs/deployment/pull-backup.rst-251- borgbackup-1.1.14/docs/deployment/pull-backup.rst:252:``eval $(ssh-agent) > /dev/null`` borgbackup-1.1.14/docs/deployment/pull-backup.rst-253- ############################################## borgbackup-1.1.14/docs/deployment/pull-backup.rst-270- borgbackup-1.1.14/docs/deployment/pull-backup.rst:271:``echo 'your secure borg key passphrase' | ssh -A -o StrictHostKeyChecking=no borgc@borg-client "BORG_PASSPHRASE=\$(cat) borg --rsh 'ssh -o StrictHostKeyChecking=no' init --encryption repokey ssh://borgs@borg-server/~/repo"`` borgbackup-1.1.14/docs/deployment/pull-backup.rst-272- ############################################## borgbackup-1.1.14/docs/deployment/pull-backup.rst-278- borgbackup-1.1.14/docs/deployment/pull-backup.rst:279:``kill "${SSH_AGENT_PID}"`` borgbackup-1.1.14/docs/deployment/pull-backup.rst-280- ############################################## borgbackup-1.1.14/docs/deployment/central-backup-server.rst-63-``app01.srv.local``. But they will access the backup under only one UNIX user account as: borgbackup-1.1.14/docs/deployment/central-backup-server.rst:64:``backup@backup01.srv.local``. Every key in ``$HOME/.ssh/authorized_keys`` has a borgbackup-1.1.14/docs/deployment/central-backup-server.rst-65-forced command and restrictions applied as shown below: ############################################## borgbackup-1.1.14/docs/internals/data-structures.rst-845-When initialized with the ``init -e keyfile`` command, |project_name| borgbackup-1.1.14/docs/internals/data-structures.rst:846:needs an associated file in ``$HOME/.config/borg/keys`` to read and write borgbackup-1.1.14/docs/internals/data-structures.rst-847-the repository. The format is based on msgpack_, base64 encoding and ############################################## borgbackup-1.1.14/src/borg/_hashindex.c-73- borgbackup-1.1.14/src/borg/_hashindex.c:74:#define BUCKET_ADDR(index, idx) (index->buckets + ((idx) * index->bucket_size)) borgbackup-1.1.14/src/borg/_hashindex.c-75- borgbackup-1.1.14/src/borg/_hashindex.c:76:#define BUCKET_MATCHES_KEY(index, idx, key) (memcmp(key, BUCKET_ADDR(index, idx), index->key_size) == 0) borgbackup-1.1.14/src/borg/_hashindex.c-77- borgbackup-1.1.14/src/borg/_hashindex.c:78:#define BUCKET_IS_DELETED(index, idx) (*((uint32_t *)(BUCKET_ADDR(index, idx) + index->key_size)) == DELETED) borgbackup-1.1.14/src/borg/_hashindex.c:79:#define BUCKET_IS_EMPTY(index, idx) (*((uint32_t *)(BUCKET_ADDR(index, idx) + index->key_size)) == EMPTY) borgbackup-1.1.14/src/borg/_hashindex.c-80- borgbackup-1.1.14/src/borg/_hashindex.c:81:#define BUCKET_MARK_DELETED(index, idx) (*((uint32_t *)(BUCKET_ADDR(index, idx) + index->key_size)) = DELETED) borgbackup-1.1.14/src/borg/_hashindex.c:82:#define BUCKET_MARK_EMPTY(index, idx) (*((uint32_t *)(BUCKET_ADDR(index, idx) + index->key_size)) = EMPTY) borgbackup-1.1.14/src/borg/_hashindex.c-83- ############################################## borgbackup-1.1.14/src/borg/_hashindex.c-142- // we optimize (change) the hashindex here "on the fly". borgbackup-1.1.14/src/borg/_hashindex.c:143: memcpy(BUCKET_ADDR(index, didx), BUCKET_ADDR(index, idx), index->bucket_size); borgbackup-1.1.14/src/borg/_hashindex.c-144- BUCKET_MARK_DELETED(index, idx); ############################################## borgbackup-1.1.14/src/borg/_hashindex.c-533- } borgbackup-1.1.14/src/borg/_hashindex.c:534: return BUCKET_ADDR(index, idx) + index->key_size; borgbackup-1.1.14/src/borg/_hashindex.c-535-} ############################################## borgbackup-1.1.14/src/borg/_hashindex.c-576- } borgbackup-1.1.14/src/borg/_hashindex.c:577: ptr = BUCKET_ADDR(index, idx); borgbackup-1.1.14/src/borg/_hashindex.c-578- memcpy(ptr, key, index->key_size); ############################################## borgbackup-1.1.14/src/borg/_hashindex.c-583- { borgbackup-1.1.14/src/borg/_hashindex.c:584: memcpy(BUCKET_ADDR(index, idx) + index->key_size, value, index->value_size); borgbackup-1.1.14/src/borg/_hashindex.c-585- } ############################################## borgbackup-1.1.14/src/borg/_hashindex.c-621- } borgbackup-1.1.14/src/borg/_hashindex.c:622: return BUCKET_ADDR(index, idx); borgbackup-1.1.14/src/borg/_hashindex.c-623-} ############################################## borgbackup-1.1.14/src/borg/_hashindex.c-652- /* In case idx==compact_tail_idx, the areas overlap */ borgbackup-1.1.14/src/borg/_hashindex.c:653: memmove(BUCKET_ADDR(index, compact_tail_idx), BUCKET_ADDR(index, idx), index->bucket_size); borgbackup-1.1.14/src/borg/_hashindex.c-654- idx++; ############################################## borgbackup-1.1.14/src/borg/_hashindex.c-672- borgbackup-1.1.14/src/borg/_hashindex.c:673: memcpy(BUCKET_ADDR(index, compact_tail_idx), BUCKET_ADDR(index, begin_used_idx), buckets_to_copy * index->bucket_size); borgbackup-1.1.14/src/borg/_hashindex.c-674- compact_tail_idx += buckets_to_copy; ############################################## borgbackup-1.1.14/src/borg/upgrader.py-75- replacement pattern is `s/ATTICSEG/BORG_SEG/` in files in borgbackup-1.1.14/src/borg/upgrader.py:76: `$ATTIC_REPO/data/**`. borgbackup-1.1.14/src/borg/upgrader.py-77- ############################################## borgbackup-1.1.14/src/borg/upgrader.py-137- replacement pattern is `s/ATTIC KEY/BORG_KEY/` in borgbackup-1.1.14/src/borg/upgrader.py:138: `get_keys_dir()`, that is `$ATTIC_KEYS_DIR` or borgbackup-1.1.14/src/borg/upgrader.py:139: `$HOME/.attic/keys`, and moved to `$BORG_KEYS_DIR` or borgbackup-1.1.14/src/borg/upgrader.py:140: `$HOME/.config/borg/keys`. borgbackup-1.1.14/src/borg/upgrader.py-141- ############################################## borgbackup-1.1.14/src/borg/upgrader.py-161- borgbackup-1.1.14/src/borg/upgrader.py:162: * the repository index (in `$ATTIC_REPO/index.%d`, where `%d` borgbackup-1.1.14/src/borg/upgrader.py-163- is the `Repository.get_index_transaction_id()`), which we ############################################## borgbackup-1.1.14/src/borg/upgrader.py-182- borgbackup-1.1.14/src/borg/upgrader.py:183: * the `files` and `chunks` cache (in `$ATTIC_CACHE_DIR` or borgbackup-1.1.14/src/borg/upgrader.py:184: `$HOME/.cache/attic/<repoid>/`), which we could just drop, borgbackup-1.1.14/src/borg/upgrader.py-185- but if we'd want to convert, we could open it with the