mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix sync_dir() when no / in filename.
This commit is contained in:
parent
8d267798db
commit
01c263e9fe
@ -1,5 +1,6 @@
|
|||||||
Version 2.00.17 -
|
Version 2.00.17 -
|
||||||
=============================
|
=============================
|
||||||
|
Fix sync_dir() when no / in filename
|
||||||
vgcfgbackup -f accepts template with %s for VG name.
|
vgcfgbackup -f accepts template with %s for VG name.
|
||||||
Extend hash functions to handle non-null-terminated data.
|
Extend hash functions to handle non-null-terminated data.
|
||||||
Add local activation support.
|
Add local activation support.
|
||||||
|
@ -219,6 +219,9 @@ void sync_dir(const char *file)
|
|||||||
while (*c != '/' && c > dir)
|
while (*c != '/' && c > dir)
|
||||||
c--;
|
c--;
|
||||||
|
|
||||||
|
if (c == dir)
|
||||||
|
*c++ = '.';
|
||||||
|
|
||||||
*c = '\0';
|
*c = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user