summaryrefslogtreecommitdiff
path: root/newtzset.3
diff options
context:
space:
mode:
Diffstat (limited to 'newtzset.3')
-rw-r--r--newtzset.318
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