Skip to contentSkip to conversation

New: strxfrm: not equivalent to strncpy

Bug 104221 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 5 messages Sep 8, 2015 – Jul 12, 2016 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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
#2 lore raw

[Bug 104221] strxfrm: not equivalent to strncpy

In reply to a message not in the archive

https://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
#3 lore raw

[Bug 104221] strxfrm: not equivalent to strncpy

In reply to a message not in the archive

https://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
#4 lore raw

[Bug 104221] strxfrm: not equivalent to strncpy

In reply to a message not in the archive

https://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
#5 lore raw

[Bug 104221] strxfrm: not equivalent to strncpy

In reply to a message not in the archive

https://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