New: strxfrm: not equivalent to strncpy
https://bugzilla.kernel.org/show_bug.cgi?id=104221
Bug ID: 104221
Summary: strxfrm: not equivalent to strncpy
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No
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.
Signature · 5 lines
You are receiving this mail because: You are watching the assignee of the bug.-- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 104221] strxfrm: not equivalent to strncpy
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=104221
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Michael Kerrisk <[email protected]> --- What do you suggest Florian. Maybe just remove that NOTES section?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 104221] strxfrm: not equivalent to strncpy
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=104221
--- Comment #2 from Florian Weimer <[email protected]> --- Yes, seems reasonable.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 104221] strxfrm: not equivalent to strncpy
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=104221
--- Comment #3 from Michael Kerrisk <[email protected]> --- Okay, I removed the NOTES section.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 104221] strxfrm: not equivalent to strncpy
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=104221
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX--- Comment #4 from Michael Kerrisk <[email protected]> --- I should have closed this after the fix I made in Comment 3.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html