Bug 118481 - don't extern strlcpy if __USE_MISC defined
Summary: don't extern strlcpy if __USE_MISC defined
Status: NEW
Alias: None
Product: Tools
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Tools.Other
Depends on:
Reported: 2016-05-19 09:09 UTC by Konstantin A. Lepikhov
Modified: 2017-07-06 23:03 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.12
Tree: Mainline
Regression: No

Possible fix (1.02 KB, application/octet-stream)
2016-05-19 09:09 UTC, Konstantin A. Lepikhov

Description Konstantin A. Lepikhov 2016-05-19 09:09:46 UTC
Created attachment 216711 [details]
Possible fix

Despite of strlcpy still planned for glibc[1], let's catch this case for extra safety.

Apparently, some distributions have this already[2]. I know that we can't make it right here and right now, but at least we need to fix libcmd somehow to prevent this problem in the future. Maybe make an entry in uapi/linux/libc-compat.h?

1. https://sourceware.org/ml/libc-alpha/2016-01/msg00205.html
2. https://bugzilla.altlinux.org/32108

Attaching possible fix for this, not ideal, but it works for me.
Comment 1 Konstantin A. Lepikhov 2016-05-19 09:13:27 UTC
Another iteration for strlcpy inclusion - https://sourceware.org/ml/libc-alpha/2016-05/msg00369.html

Note You need to log in before you can comment on or make changes to this bug.