1
0
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:
Alasdair Kergon 2004-06-19 19:24:33 +00:00
parent 8d267798db
commit 01c263e9fe
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.00.17 -
=============================
Fix sync_dir() when no / in filename
vgcfgbackup -f accepts template with %s for VG name.
Extend hash functions to handle non-null-terminated data.
Add local activation support.

View File

@ -219,6 +219,9 @@ void sync_dir(const char *file)
while (*c != '/' && c > dir)
c--;
if (c == dir)
*c++ = '.';
*c = '\0';
}