Files
libguestfs/docs
Richard W.M. Jones eeacb4ef60 launch: Implement a safer getumask.
The current implementation of getumask involves writing a file with
mode 0777 and then testing what mode was created by the kernel.  This
doesn't work properly if the user set a per-mount umask (or fmask/
dmask).

This alternative method was suggested by Josh Stone.  By forking, we
can use the thread-unsafe method (calling umask) and pass the result
back over a pipe.

This change also fixes another problem: mode_t is unsigned, so cannot
be used to return an error indication (ie. -1).  Return a plain int
instead.

Thanks: Josh Stone, Jiri Jaburek, Eric Blake.
2016-04-14 15:10:25 +01:00
..

This directory contains miscellaneous manual pages which don't fit
elsewhere.

Most libguestfs documentation is in manual pages.  The source for
those manual pages are POD files (*.pod), and they are normally
located next to the source files they relate to (eg. guestfish
documentation is in fish/guestfish.pod).

All manual pages are available online at http://libguestfs.org/

The main API documentation is: http://libguestfs.org/guestfs.3.html