1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha afc8a3b104 Fix create_temp_name to replace any '/' found in the hostname with '?'.
There's a possibility someone will use the '/' in the hostname. Since we
generate a temporary file name (path) including the hostname, any '/' would
be ambiguous.

We can always set such hostname using 'sethostname' from unistd.h. But the
'hostname' command already includes the check and removes the '/' char.
However, some old versions still allow that.
See: https://bugzilla.redhat.com/show_bug.cgi?id=711445.

Since this is only a temporary name and the possibility of this error is
quite negligible, we don't need any complex escape sequence here, just a
simple char replace.
2011-06-08 08:49:53 +00:00
..
activate Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
cache Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
commands When glibc needs buffers for line buffering of input and output buffers, it 2011-05-07 13:50:11 +00:00
config test 2011-05-24 14:10:55 +00:00
datastruct Better const cast logic 2011-04-08 14:14:57 +00:00
device Use new dev_open_readonly fn to prevent opening devices for read-write when not necessary. 2011-05-28 09:48:14 +00:00
display Fix some compile warnings on RHEL5 2011-03-01 20:17:56 +00:00
error Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
filters Add and use dev_open_readonly and variations. 2011-05-24 13:36:57 +00:00
format1 Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
format_pool Use new dev_open_readonly fn to prevent opening devices for read-write when not necessary. 2011-05-28 09:48:14 +00:00
format_text Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
freeseg Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
label Report sector containing label in verbose message. 2011-06-01 15:30:36 +00:00
locking Propagate test mode to clvmd to skip activation and changes to held locks. 2011-06-01 21:16:55 +00:00
log pre-release clean-ups 2011-04-29 00:21:13 +00:00
metadata missing space in mesg 2011-06-06 12:08:42 +00:00
mirror Make vg_mark_partial_lvs also clear existing PARTIAL_LV flags, so it can be 2011-05-07 13:32:05 +00:00
misc Fix create_temp_name to replace any '/' found in the hostname with '?'. 2011-06-08 08:49:53 +00:00
mm Report sector containing label in verbose message. 2011-06-01 19:26:38 +00:00
replicator Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
report This patchset refactors some reporting code and completes the remaining 2011-04-12 12:24:29 +00:00
snapshot pre-release clean-ups 2011-04-29 00:21:13 +00:00
striped Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
unknown Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
uuid Const fixing 2011-02-18 14:47:28 +00:00
zero Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
Makefile.in Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00