Skip to content

Commit

Permalink
hardlink: delete hardlink.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsura authored and BareosBot committed Sep 22, 2023
1 parent 568fb9a commit eadcf88
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 47 deletions.
3 changes: 1 addition & 2 deletions core/src/findlib/CMakeLists.txt
@@ -1,6 +1,6 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2017-2022 Bareos GmbH & Co. KG
# Copyright (C) 2017-2023 Bareos GmbH & Co. KG
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -28,7 +28,6 @@ set(BAREOSFIND_SRCS
find_one.cc
find.cc
fstype.cc
hardlink.cc
match.cc
mkpath.cc
shadowing.cc
Expand Down
44 changes: 0 additions & 44 deletions core/src/findlib/hardlink.cc

This file was deleted.

10 changes: 9 additions & 1 deletion core/src/findlib/hardlink.h
Expand Up @@ -40,7 +40,15 @@ struct CurLink {
std::string name; /**< The name */

CurLink(const char* fname) : name{fname} {}
void set_digest(int32_t digest_stream, const char* digest, uint32_t len);
void set_digest(int32_t new_digest_stream,
const char* new_digest,
uint32_t len)
{
if (digest.empty()) {
digest.assign(new_digest, new_digest + len);
digest_stream = new_digest_stream;
}
}
};

struct Hardlink {
Expand Down

0 comments on commit eadcf88

Please sign in to comment.