1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/liblvm
Tony Asleson eaeb33abd4 liblvm: Save off and restore umask values
lvm has a default umask value in the config file that defaults
to 0077 which lvm changes to during normal operation.  This
causes a problem when the code is used as a library with
liblvm as it is changing the umask for the process.  This
patch saves off the current umask, sets to what is specified
in the config file and restores it what it was on library
function call exit.

The user is now free to change the umask in their application at
anytime including between library calls.

This fix address BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1012113

Tested by setting umask to 0777 and running the python unit
test and verifying that umask is still same value as expected
at the test completion and with a successful run.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
2013-12-20 13:36:22 -06:00
..
.exported_symbols Generate liblvm2app and libdevmapper exported symbols from header files. 2010-06-25 18:17:38 +00:00
Doxyfile Add Doxygen file for lvm2app to generate documentation from lvm2app.h. 2010-02-24 18:16:54 +00:00
liblvm2app.pc.in configure: add --enable-blkid_wiping 2013-11-27 15:48:16 +01:00
lvm2app.h lvm2app: Remove forward declarations. 2013-11-19 14:40:44 -06:00
lvm_base.c liblvm: Save off and restore umask values 2013-12-20 13:36:22 -06:00
lvm_lv.c liblvm: Save off and restore umask values 2013-12-20 13:36:22 -06:00
lvm_misc.c liblvm: Save off and restore umask values 2013-12-20 13:36:22 -06:00
lvm_misc.h liblvm: Save off and restore umask values 2013-12-20 13:36:22 -06:00
lvm_prop_fields.h lvm2app: Add ability to create PV with args 2013-11-19 14:40:34 -06:00
lvm_prop.c lvm2app: Add ability to create PV with args 2013-11-19 14:40:34 -06:00
lvm_prop.h lvm2app: Add ability to create PV with args 2013-11-19 14:40:34 -06:00
lvm_pv.c liblvm: Save off and restore umask values 2013-12-20 13:36:22 -06:00
lvm_vg.c liblvm: Save off and restore umask values 2013-12-20 13:36:22 -06:00
Makefile.in lvm2app: Add thin and thin pool lv creation 2013-07-12 16:52:16 -05:00