Bug 740682

Summary: sys/time.h claims settimeofday's first param couldn't be NULL, which is not correct
Product: [Fedora] Fedora Reporter: Lennart Poettering <lpoetter>
Component: glibcAssignee: Jeff Law <law>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: fweimer, jakub, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-26 20:38:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lennart Poettering 2011-09-22 22:36:37 UTC
Invoking settimeofday() with the first param as NULL is a valid operation, in order to change the kernel timezone (and we use that in systemd). This is documented in the man page, but the header file claims with __nonnull ((1)) that the first param couldn't be null.

$ rpm -qf /usr/include/sys/time.h 
glibc-headers-2.14.90-9.x86_64

Comment 1 Lennart Poettering 2011-09-22 22:37:30 UTC
this creates all kinds of warnings in static analysers such as coverity.

Comment 2 Fedora Admin XMLRPC Client 2011-11-14 19:15:19 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.