]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix #9224 about Storage Daemon issue with BoostFS
authorEric Bollengier <eric@baculasystems.com>
Tue, 7 Jun 2022 14:39:02 +0000 (16:39 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
commitdca4e94adf0d55266c478c1a60f50030f2490cee
tree8fe935607479999ef9ed3513306f5c60c3cbeb8d
parent6a35e361054709e7527ec4b63a0368e7a5702229
Fix #9224 about Storage Daemon issue with BoostFS

On bootfs, the call to ioctl(tmp_fd, FS_IOC_GETFLAGS, (char *)&get_attr);
triggers an error, and the get_attr variable is not long enough
and the memory in the stack get overwritten leading to a segfault.

The man page is incorrect, a "int" is documented, but a "long"
is actually needed.
bacula/src/stored/file_dev.c