mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't forget to rename mounted snapshots of the file system being renamed.
MFC after: 2 weeks
This commit is contained in:
parent
d7e9ac7523
commit
649bbd1cd0
1 changed files with 1 additions and 1 deletions
|
|
@ -2437,7 +2437,7 @@ zfsvfs_update_fromname(const char *oldname, const char *newname)
|
|||
continue;
|
||||
}
|
||||
if (strncmp(fromname, oldname, oldlen) == 0 &&
|
||||
fromname[oldlen] == '/') {
|
||||
(fromname[oldlen] == '/' || fromname[oldlen] == '@')) {
|
||||
(void)snprintf(tmpbuf, sizeof(tmpbuf), "%s%s",
|
||||
newname, fromname + oldlen);
|
||||
(void)strlcpy(fromname, tmpbuf,
|
||||
|
|
|
|||
Loading…
Reference in a new issue