mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-28 04:47:53 +00:00
(TimeDate) package for parsing dates and fall back to using Date::Manip if Date::Parse isn't available -- Date::Manip is more commonly available, but is written solely in perl and is more general-purpose and heavyweight than Date::Parse. The DateTime package (datetime.perl.org) doesn't suffice as it it either uses Date::Manip internally and DateTime::Format::Strptime also isn't commonly available. Given that our regex for identifying dates in syslog is pretty static; POSIX::strptime (implementing strptime(3)) functionality would probably be the best way to go -- except that perl's POSIX doesn't include strptime and POSIX::strptime is another not commonly available package. Sigh.
Fix for BZ# 230011 (https://bugzilla.novell.com/show_bug.cgi?id=230011) - add checks for passing "" or NULL as hatname in the ChangeHatValve and JNI changehat wrapper function
Description
Languages
Python
43.3%
C
23.2%
Shell
11.8%
C++
9.8%
Rich Text Format
2.3%
Other
9.4%