diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-12-11 10:28:59 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-12-11 10:28:59 +0000 |
| commit | 0d46d875e60091694abe5d38e0cbb4c8019bfd71 (patch) | |
| tree | 5d52afe9fe7ccb0e9f4357ab8e9926be47b129a3 /newtzset.3 | |
| parent | 76d3e9d6b36023210e896d00ecef2d19f0acd2d8 (diff) | |
Diffstat (limited to 'newtzset.3')
| -rw-r--r-- | newtzset.3 | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/newtzset.3 b/newtzset.3 index db6bfa7fa64c..028cfd2563e3 100644 --- a/newtzset.3 +++ b/newtzset.3 @@ -13,7 +13,7 @@ tzset \- initialize time conversion information .PP .B void tzset(void); .PP -/\(** Optional and obsolescent: \(**/ +/* Optional and obsolescent: */ .br .B extern char *tzname[]; .br @@ -78,7 +78,17 @@ contents are used as a pathname, a pathname beginning with is used as-is; otherwise the pathname is relative to a system time conversion information directory. -The file must be in the format specified in +In a privileged program the pathname must be relative. +Relative pathnames must not contain +.q "..\&" +components. +For the purpose of these checks, a file name beginning with +.q "/" +is considered to be relative if it is the +.B localtime +file's name, or if it starts with the +system timezone directory's name followed by one more more slashes. +The file must be a regular file in the format specified in .BR tzfile (5). .PP When @@ -369,6 +379,10 @@ If successful, the function returns a nonnull pointer to the newly allocated object. Otherwise, it returns a null pointer and sets .IR errno . +The +.B tzfree +function does not modify +.IR errno . .SH ERRORS .TP .B EOVERFLOW |
