[system/kio-snapshot] common: fix determining subvolume root of files
Bharadwaj Raju <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 6c98132591621b30f6ecc4f97640d61f7b805011 by Bharadwaj Raju.
Committed on 22/07/2026 at 04:21.
Pushed by bharadwaj-raju into branch 'master'.
fix determining subvolume root of files
M +1 -1 common/btrfssnapshots.cpp
https://invent.kde.org/system/kio-snapshot/-/commit/6c98132591621b30f6ecc4f97640d61f7b805011
diff --git a/common/btrfssnapshots.cpp b/common/btrfssnapshots.cpp
index a0e02d3..2db9e91 100644
--- a/common/btrfssnapshots.cpp
+++ b/common/btrfssnapshots.cpp
@@ -82,7 +82,7 @@ QList<BtrfsSnapshots::FileSnapshot> BtrfsSnapshots::getSnapshotsForFile(const QS
if (fileInfo.isDir()) {
subvolumeRoot = QDir(path);
} else {
- QDir subvolumeRoot(QFileInfo(path).absoluteDir());
+ subvolumeRoot = QDir(QFileInfo(path).absoluteDir());
}
struct btrfs_util_subvolume_info subvolume_root_info;
enum btrfs_util_error btrfs_err;