diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LYIcon.rc | 10 | ||||
-rw-r--r-- | src/LYUtils.c | 13 |
2 files changed, 13 insertions, 10 deletions
diff --git a/src/LYIcon.rc b/src/LYIcon.rc index 724ac3ba..d559aa9a 100644 --- a/src/LYIcon.rc +++ b/src/LYIcon.rc @@ -1,12 +1,12 @@ -// $LynxId: LYIcon.rc,v 1.16 2015/01/25 16:05:46 tom Exp $ +// $LynxId: LYIcon.rc,v 1.17 2015/03/22 15:16:20 tom Exp $ #include <windows.h> 100 ICON "../samples/lynx.ico" VS_VERSION_INFO VERSIONINFO -FILEVERSION 2,8,9,1004 -PRODUCTVERSION 2,8,9,1004 +FILEVERSION 2,8,9,1005 +PRODUCTVERSION 2,8,9,1005 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK FILEFLAGS 0 FILEOS VOS_NT_WINDOWS32 @@ -19,12 +19,12 @@ BEGIN BEGIN VALUE "CompanyName", "http://lynx.isc.org" VALUE "FileDescription", "Lynx - web browser" - VALUE "FileVersion", "2.8.9.1004" + VALUE "FileVersion", "2.8.9.1005" VALUE "InternalName", "Lynx" VALUE "LegalCopyright", "©1997-2015 Thomas E. Dickey" VALUE "OriginalFilename", "lynx.exe" VALUE "ProductName", "Lynx - web browser" - VALUE "ProductVersion", "2.8.9.1004" + VALUE "ProductVersion", "2.8.9.1005" END END BLOCK "VarFileInfo" diff --git a/src/LYUtils.c b/src/LYUtils.c index c99c51df..4772fa47 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYUtils.c,v 1.273 2014/12/30 22:16:41 Gisle.Vanem Exp $ + * $LynxId: LYUtils.c,v 1.274 2015/03/22 15:38:23 tom Exp $ */ #include <HTUtils.h> #include <HTTCP.h> @@ -5862,9 +5862,9 @@ static BOOL IsOurSymlink(const char *name) #endif /* - * Verify if this is really a file, not accessed by a link, except for the - * special case of its directory being pointed to by a link from a directory - * owned by root and not writable by other users. + * Verify if this is really a file which is not accessed by a symbolic link, + * except for the special case of its directory being pointed to by a link from + * a directory owned by root and not writable by other users. */ BOOL IsOurFile(const char *name) { @@ -5875,7 +5875,6 @@ BOOL IsOurFile(const char *name) && lstat(name, &data) == 0 && ((S_ISREG(data.st_mode) && (data.st_mode & (S_IWOTH | S_IWGRP)) == 0 - && data.st_nlink == 1 && data.st_uid == getuid()) #if defined(HAVE_LSTAT) && defined(S_IFLNK) || (S_ISLNK(data.st_mode) && IsOurSymlink(name)) @@ -5915,6 +5914,10 @@ BOOL IsOurFile(const char *name) * uid we can count on is 0. It would be nice to add a * check for the gid also, but that wouldn't be * portable. + * + * Likewise, the t-bit would be nice to rely upon. However + * it is marked as an extension in POSIX, rather than + * required. */ if (data.st_uid != 0 || (data.st_mode & S_IWOTH) != 0) { |