]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: include sys/stat.h again
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Sep 2025 16:36:58 +0000 (01:36 +0900)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 Sep 2025 20:56:49 +0000 (22:56 +0200)
commite66b233e8375c570de282568c0c092a4a390001e
treede9c5ffb691d5742c76602a58377b3f5145987f7
parent4bbd7ece53041adb611f96d69cdb3e08dae86a7a
run: include sys/stat.h again

This partially reverts 9adb4685dffadb3991535a8d990ce35132b6d9a6.

For the case that sys/stat.h is not included indirectly by other headers.
Fixes the following error:
```
../src/run/run.c: In function 'fchown_to_capsule':
../src/run/run.c:2128:21: error: storage size of 'st' isn't known
 2128 |         struct stat st;
      |                     ^~
```
src/run/run.c