diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2019-02-09 13:44:56 +0000 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2019-02-09 13:46:30 +0000 |
commit | 37b01ad3834eb6d45b96a30a469f042f5190fe65 (patch) | |
tree | 792d97274774acfee5ce51cfb7cfaf97e4161ccd /utils.c | |
parent | a252a2db8e9e5f1ad4cf7a235d19615b9a175bfd (diff) |
Fix btrfs send of snapshots stored in /. Closes: #920886.HEADdebian/4.20.1-2archive/debian/4.20.1-2master
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2079,7 +2079,7 @@ int find_mount_root(const char *path, char **mount_root) while ((ent = getmntent(mnttab))) { len = strlen(ent->mnt_dir); if (strncmp(ent->mnt_dir, path, len) == 0 && - (path[len] == '/' || path[len] == '\0')) { + (len == 1 || path[len] == '/' || path[len] == '\0')) { /* match found and use the latest match */ if (longest_matchlen <= len) { free(longest_match); |