Some of shadow's code, e.g. lib/commonio, limits internal paths to 1024 characters. While this is more than enough for regular paths like /etc/passwd and so on, the prefix flags would allow longer paths.
Either check if supplied arguments (and subsequent constructions of paths, e.g. backup files) fit into buffers or dynamically allocate these paths and just check if opening/creating these paths fail afterwards.
See #1497 (comment)
Some of shadow's code, e.g. lib/commonio, limits internal paths to 1024 characters. While this is more than enough for regular paths like
/etc/passwdand so on, the prefix flags would allow longer paths.Either check if supplied arguments (and subsequent constructions of paths, e.g. backup files) fit into buffers or dynamically allocate these paths and just check if opening/creating these paths fail afterwards.
See #1497 (comment)