libxl: fix _SC_GETPW_R_SIZE_MAX usage
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 14 Jan 2016 15:06:50 +0000 (16:06 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 15 Jan 2016 10:32:24 +0000 (10:32 +0000)
commit2155a0ec7d693a05553e515ce1a1d3783fdc8e53
tree6ad0fad38745c70c5f4dbc71946d369e43358b99
parent7d3c16b4e966c3591d822e1ceb4431b63a723660
libxl: fix _SC_GETPW_R_SIZE_MAX usage

If sysconf(_SC_GETPW_R_SIZE_MAX) fails for any reason just use an initial
buffer size of 2048. This is not a critical failure, and the code that
makes use of this buffer is able to expand it later if required.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dm.c