Menu

#18 njmon.linux.v80 Off-by-one os info string copy

Unstable (example)
accepted
nobody
None
2
2022-11-14
2022-11-11
Nils Smeds
No

The copy of strings from /etc/os-release starts att one position too far into the source string. If the value starts with a space or a double quote character this does not show up. However, for Fedora the VERSION_ID is a string of digits with no leading double quote causing Fedora release 37 showing up in the database as version_id=7

1 Attachments

Related

Patches: #18

Discussion

  • Nigel Griffiths

    Nigel Griffiths - 2022-11-14
    • status: open --> accepted
    • Priority: 5 --> 2
     
    • Nils Smeds

      Nils Smeds - 2022-11-14

      I'm happy to be a guinea pig and help to root the out as they occur :-)

      On Mon, Nov 14, 2022 at 5:56 AM Nigel Griffiths nigelgriffiths@users.sourceforge.net wrote:

      • status: open --> accepted
      • Priority: 5 --> 2
      • Comment:

      This is the Linux curse!
      As there are differing standards in system file content across distros and
      even versions within the distro. There is no alternative than to hitting
      each inconsisancy in turn.


      Status: accepted
      Group: Unstable (example)
      Created: Fri Nov 11, 2022 05:17 AM UTC by Nils Smeds
      Last Updated: Fri Nov 11, 2022 05:17 AM UTC
      Owner: nobody
      Attachments:

      The copy of strings from /etc/os-release starts att one position too far
      into the source string. If the value starts with a space or a double quote
      character this does not show up. However, for Fedora the VERSION_ID is a
      string of digits with no leading double quote causing Fedora release 37
      showing up in the database as version_id=7


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/nmon/patches/18/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Patches: #18

  • Nigel Griffiths

    Nigel Griffiths - 2022-11-14

    This is the Linux curse!
    As there are differing standards in system file content across distros and even versions within the distro. There is no alternative than to hitting each inconsisancy in turn.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.