musl/src/time
Rich Felker 41a9ba25cd remove O_NOFOLLOW from __map_file used for time zone file loading
it's not clear why I originally wrote O_NOFOLLOW into this; I suspect
the reason was with an aim of making the function more general for
mapping partially or fully untrusted files provided by the user.
however, the timezone code already precludes use of absolute or
relative pathnames in suid/sgid programs, and disallows .. in
pathnames which are relative to one of the system timezone locations,
so there is no threat of opening a symlink which is not trusted by
appropriate user. since some users may wish to put symbolic links in
the zoneinfo directories to alias timezones, it seems preferable to
allow this.
2013-11-08 21:33:42 -05:00
..
__asctime.c rework langinfo code for ABI compat and for use by time code 2013-07-24 18:52:02 -04:00
__map_file.c remove O_NOFOLLOW from __map_file used for time zone file loading 2013-11-08 21:33:42 -05:00
__month_to_secs.c the big time handling overhaul 2013-07-17 05:24:50 -04:00
__secs_to_tm.c the big time handling overhaul 2013-07-17 05:24:50 -04:00
__tm_to_secs.c the big time handling overhaul 2013-07-17 05:24:50 -04:00
__tz.c fix handling of overly-long TZ environment variable values 2013-11-08 20:50:59 -05:00
__year_to_secs.c the big time handling overhaul 2013-07-17 05:24:50 -04:00
asctime.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
asctime_r.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
clock.c fix overflow behavior of clock() function 2013-05-23 14:31:02 -04:00
clock_getcpuclockid.c support cputime clocks for processes/threads other than self 2013-06-08 11:36:41 -04:00
clock_getres.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
clock_gettime.c use weak aliase rather than weak reference for vdso clock_gettime 2011-08-07 15:48:16 -04:00
clock_nanosleep.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
clock_settime.c global cleanup to use the new syscall interface 2011-03-20 00:16:43 -04:00
ctime.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ctime_r.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
difftime.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ftime.c add legacy ftime function and sys/timeb.h 2013-10-25 14:15:08 -04:00
getdate.c more close-on-exec fixes, mostly using new "e" flag to fopen 2012-09-29 18:14:46 -04:00
gettimeofday.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
gmtime.c the big time handling overhaul 2013-07-17 05:24:50 -04:00
gmtime_r.c fix strftime handling of time zone data 2013-08-24 12:59:02 -04:00
localtime.c the big time handling overhaul 2013-07-17 05:24:50 -04:00
localtime_r.c fix error code on time conversion overflows 2013-07-17 10:39:11 -04:00
mktime.c fix error code on time conversion overflows 2013-07-17 10:39:11 -04:00
nanosleep.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
strftime.c add the %s (seconds since the epoch) format to strftime 2013-08-25 02:02:15 -04:00
strptime.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
time.c some preliminaries for vdso clock support 2011-07-23 23:45:33 -04:00
time_impl.h the big time handling overhaul 2013-07-17 05:24:50 -04:00
timegm.c fix strftime handling of time zone data 2013-08-24 12:59:02 -04:00
timer_create.c have new timer threads unblock their own SIGTIMER 2013-08-03 17:10:42 -04:00
timer_delete.c fix multiple bugs in SIGEV_THREAD timers 2013-08-03 13:20:42 -04:00
timer_getoverrun.c fix multiple bugs in SIGEV_THREAD timers 2013-08-03 13:20:42 -04:00
timer_gettime.c fix multiple bugs in SIGEV_THREAD timers 2013-08-03 13:20:42 -04:00
timer_settime.c fix multiple bugs in SIGEV_THREAD timers 2013-08-03 13:20:42 -04:00
times.c do not interpret errors in return value of times() syscall 2013-05-05 14:19:37 -04:00
utime.c linux deprecated SYS_utime on some archs, so use SYS_utimes instead 2012-05-24 10:55:58 -04:00
wcsftime.c add strftime and wcsftime field widths 2013-08-22 22:36:19 -04:00