1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/misc
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
..
configure.h.in Add configure option --with-device-nodes-on 2011-02-04 22:17:54 +00:00
crc_gen.c was renamed 2010-09-27 19:10:46 +00:00
crc.c Fix CRC32 calculation on big endian CPU 2011-02-08 12:41:08 +00:00
crc.h Speed up CRC32 calculations by using a larger lookup table. 2010-09-27 19:09:34 +00:00
intl.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
last-path-component.h cleaner const char* usage for last_path_component() 2008-11-12 09:53:33 +00:00
lib.h more tweaking to get things to compile - dmlib.h for log fns, list.h 2008-11-03 18:59:59 +00:00
lvm-exec.c Add exec_cmd paramater sync_needed 2011-01-13 14:51:32 +00:00
lvm-exec.h Add exec_cmd paramater sync_needed 2011-01-13 14:51:32 +00:00
lvm-file.c Fix create_temp_name to replace any '/' found in the hostname with '?'. 2011-06-08 08:49:53 +00:00
lvm-file.h Make _init_rand() thread safe - use rand_r() instead of rand(). 2008-12-07 04:27:56 +00:00
lvm-globals.c Obtain device list from udev by default if LVM2 is compiled with udev support. 2011-04-22 12:05:32 +00:00
lvm-globals.h Set pv_min_size to 2048KB to exclude floppy drives. 2011-04-28 17:33:34 +00:00
lvm-percent.c Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00
lvm-percent.h Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00
lvm-string.c Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
lvm-string.h Remove tag length restriction and allow / = ! : # & characters. 2010-11-17 10:19:29 +00:00
lvm-version.h.in Add an API version number, LVM_LIBAPI, to the VERSION string. 2009-07-22 20:01:28 +00:00
lvm-wrappers.c Move common libudev code to lvm-wrappers.[ch]. 2011-04-22 11:59:59 +00:00
lvm-wrappers.h Move common libudev code to lvm-wrappers.[ch]. 2011-04-22 11:59:59 +00:00
sharedlib.c Create global is_static() to eliminate from the library init function. 2008-12-18 05:27:17 +00:00
sharedlib.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
timestamp.c Skip NULL check before dm_free 2011-01-28 10:16:04 +00:00
timestamp.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
util.c Fix the fsadm build failure without using -llvm. 2007-10-03 16:10:04 +00:00
util.h Newer gcc doesn't need this trick 2011-04-08 14:11:40 +00:00