[Bug runtime/13645] New: isolate strftime to stapio

jistone at redhat dot com sourceware-bugzilla@sourceware.org
Wed Feb 1 17:55:00 GMT 2012


http://sourceware.org/bugzilla/show_bug.cgi?id=13645

             Bug #: 13645
           Summary: isolate strftime to stapio
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap@sourceware.org
        ReportedBy: jistone@redhat.com
    Classification: Unclassified


The -o option for staprun/stapio supports strftime formatting in its argument
to name the output files by localtime.  Since this is a user-provided format
string, we have to relax gcc with -Wno-format-nonliteral.

The output files are opened by stapio, so it will have to use this format.  But
staprun only processes the format during the parse_args() validation.  If we
refactor the strftime call to only stapio, then we can isolate the relaxed
warning too, and leave the setuid staprun as tight as possible.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Systemtap mailing list