Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177461645
D17701.1794472256.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1004 B
Referenced Files
None
Subscribers
None
D17701.1794472256.diff
View Options
Index: contrib/tzcode/stdtime/localtime.c
===================================================================
--- contrib/tzcode/stdtime/localtime.c
+++ contrib/tzcode/stdtime/localtime.c
@@ -398,7 +398,6 @@
if (name == NULL && (name = TZDEFAULT) == NULL)
return -1;
{
- int doaccess;
struct stat stab;
/*
** Section 4.9.1 of the C standard says that
@@ -415,8 +414,7 @@
if (name[0] == ':')
++name;
- doaccess = name[0] == '/';
- if (!doaccess) {
+ if (name[0] != '/') {
if ((p = TZDIR) == NULL) {
free(fullname);
return -1;
@@ -428,16 +426,7 @@
(void) strcpy(fullname, p);
(void) strcat(fullname, "/");
(void) strcat(fullname, name);
- /*
- ** Set doaccess if '.' (as in "../") shows up in name.
- */
- if (strchr(name, '.') != NULL)
- doaccess = TRUE;
name = fullname;
- }
- if (doaccess && access(name, R_OK) != 0) {
- free(fullname);
- return -1;
}
if ((fid = _open(name, OPEN_MODE)) == -1) {
free(fullname);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 12, 8:30 AM (17 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41673748
Default Alt Text
D17701.1794472256.diff (1004 B)
Attached To
Mode
D17701: Remove useless call to access(2)
Attached
Detach File
Event Timeline