Bug 104221 - strxfrm: not equivalent to strncpy
Summary: strxfrm: not equivalent to strncpy
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 21:08 UTC by Florian Weimer
Modified: 2016-07-12 18:23 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Florian Weimer 2015-09-08 21:08:27 UTC
Version 3.81 says this:

“In the POSIX or C locales strxfrm() is equivalent to copying the string with strncpy(3).”

This is a bit misleading because the behavior on truncation is unspecified for strxfrm.
Comment 1 Michael Kerrisk 2016-03-11 19:08:27 UTC
What do you suggest Florian. Maybe just remove that NOTES section?
Comment 2 Florian Weimer 2016-03-11 19:12:04 UTC
Yes, seems reasonable.
Comment 3 Michael Kerrisk 2016-07-07 11:46:19 UTC
Okay, I removed the NOTES section.
Comment 4 Michael Kerrisk 2016-07-12 18:23:53 UTC
I should have closed this after the fix I made in Comment 3.

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