Skip to content

Commit

Permalink
- fixed parsing btrfs subvolume list output
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Jan 16, 2025
1 parent f8e7240 commit 1707eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/snbk/CmdBtrfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace snapper
string::size_type pos6 = line.find(" received_uuid ");
if (pos6 == string::npos)
SN_THROW(Exception("could not find 'received_uuid' in 'btrfs subvolume list' output"));
line.substr(pos6 + strlen(" received_uuid ")) >> entry.parent_uuid;
line.substr(pos6 + strlen(" received_uuid ")) >> entry.received_uuid;
if (entry.received_uuid == "-")
entry.received_uuid = "";

Expand Down

0 comments on commit 1707eb6

Please sign in to comment.