string
get_abs_subvol_path(string subvolume)
{
- if(!boost::starts_with(subvolume, "/"))
+ if (!boost::starts_with(subvolume, "/"))
subvolume.insert(0, "/");
return subvolume;
}
void
usage()
{
- cerr << "usage: [--nocow] [--verbose] target" << endl;
+ cerr << "usage: [--nocow] [--verbose] path" << endl;
exit(EXIT_FAILURE);
}
usage();
target = get_opts.pop_arg();
+
+ if (!boost::starts_with(target, "/"))
+ SN_THROW(OptionsException("path does not start with '/'"));
}
catch (const OptionsException& e)
{
<title>DESCRIPTION</title>
<para>Mksubvolume is a command-line program to create a btrfs subvolume
including adding a fstab entry and mounting the subvolume at
- <replaceable>path</replaceable>.</para>
+ the absolute path <replaceable>path</replaceable>.</para>
</refsect1>
<refsect1 id='global_options'>
+-------------------------------------------------------------------
+Fri Jun 13 11:52:02 CEST 2025 - aschnell@suse.com
+
+- check that path for mksubvolume is an absolute path
+ (gh#openSUSE/snapper#1016)
+
-------------------------------------------------------------------
Thu Apr 24 12:20:13 CEST 2025 - aschnell@suse.com