From: Dave Reisner Date: Sat, 19 Apr 2014 17:22:35 +0000 (-0400) Subject: implement a union to pad out file_handle X-Git-Tag: v213~353 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=370c860f748d149097710dc7952a64f627db9de7;hp=370c860f748d149097710dc7952a64f627db9de7;p=elogind.git implement a union to pad out file_handle Cases where name_to_handle_at is used allocated the full struct to be MAX_HANDLE_SZ, and assigned this size to handle_bytes. This is wrong since handle_bytes should describe the length of the flexible array member and not the whole struct. Define a union type which includes sufficient padding to allow assignment of MAX_HANDLE_SZ to be correct. ---