]> git.ipfire.org Git - thirdparty/systemd.git/commit
implement a union to pad out file_handle
authorDave Reisner <dreisner@archlinux.org>
Sat, 19 Apr 2014 17:22:35 +0000 (13:22 -0400)
committerDave Reisner <dreisner@archlinux.org>
Mon, 21 Apr 2014 13:52:08 +0000 (09:52 -0400)
commit370c860f748d149097710dc7952a64f627db9de7
tree8f5238269d4c3e8622dec4d7d97f1afd775e230e
parentdbb9401dba0bd5157d021e695a47bf52b2d74a2d
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.
src/libudev/libudev-monitor.c
src/readahead/readahead-common.c
src/shared/util.h
src/tmpfiles/tmpfiles.c