Commit d61ac4a7 authored by Johannes Berg's avatar Johannes Berg
Browse files

um: remove PATH_MAX use



Evidently, PATH_MAX isn't always defined, at least not via <limits.h>.
Simply remove the use and replace it by a constant 4k. As stat::st_size
is zero for /proc/self/exe we can't even size it automatically, and it
seems unlikely someone's going to try to run UML with such a path.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410240553.gYNIXN8i-lkp@intel.com/


Fixes: 031acdcf ("um: restore process name")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3f17fed2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment