Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2015 20:52:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-doc@FreeBSD.org
Subject:   [Bug 201725] lib/libc/gen/syslog.3: missing priority argument in example code in BUGS section.
Message-ID:  <bug-201725-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201725

            Bug ID: 201725
           Summary: lib/libc/gen/syslog.3: missing priority argument in
                    example code in BUGS section.
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Documentation
          Assignee: freebsd-doc@FreeBSD.org
          Reporter: linuxgeek@gmail.com

Created attachment 159029
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=159029&action=edit
syslog.3.patch

The syslog function signature looks like this:

  void syslog(int priority, const char *message, ...);

In the BUGS section of syslog(3), the reader is warned about formatting attacks
and it is suggested that the following idiom be used:

  syslog("%s", string);

The example lacks the first int argument (the priority). The attached patch
adds the missing 'priority' argument to the example code.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201725-9>