diff options
author | Rich Felker <dalias@aerifal.cx> | 2022-11-07 22:17:55 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2022-11-07 22:33:24 -0500 |
commit | b50eb8c36c20f967bd0ed70c0b0db38a450886ba (patch) | |
tree | 9f7cb320d7b0c6d72c07c0a18a8054df88be3327 /src/unistd/fchownat.c | |
parent | ad5dcd398b9509cf43672e3a7f02c4b18035998c (diff) | |
download | musl-b50eb8c36c20f967bd0ed70c0b0db38a450886ba.tar.gz musl-b50eb8c36c20f967bd0ed70c0b0db38a450886ba.tar.xz musl-b50eb8c36c20f967bd0ed70c0b0db38a450886ba.zip |
fix strverscmp comparison of digit sequence with non-digits
the rule that longest digit sequence not beginning with a zero is greater only applies when both sequences being compared are non-degenerate. this is spelled out explicitly in the man page, which may be deemed authoritative for this nonstandard function: "If one or both of these is empty, then return what strcmp(3) would have returned..." we were wrongly treating any sequence of digits not beginning with a zero as greater than a non-digit in the other string.
Diffstat (limited to 'src/unistd/fchownat.c')
0 files changed, 0 insertions, 0 deletions