[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev supporting full pathnames
From: |
Larry W. Virden |
Subject: |
lynx-dev supporting full pathnames |
Date: |
Sat, 27 Feb 1999 23:22:02 -0500 (EST) |
Currently LYBookmark.c requires the bookmark file exist somewhere under
the user's $HOME. With this patch, the user has the ability to specify
a full pathname, for cases where the quotas on one's home directory force
them to maintain bookmarks elsewhere.
--- LYBookmark.c-dist Sat Feb 27 23:13:42 1999
+++ LYBookmark.c Sat Feb 27 23:19:21 1999
@@ -91,5 +91,9 @@
*/
- LYAddPathToHome(filename_buffer,
+ if ( *BookmarkPage != '/' )
+ LYAddPathToHome(filename_buffer,
sizeof(filename_buffer),
BookmarkPage);
+ else
+ strncpy(filename_buffer, BookmarkPage, sizeof(filename_buffer)-1);
+
CTRACE(tfp, "\nget_bookmark_filename: SEEKING %s\n AS %s\n\n",
@@ -311,5 +315,8 @@
*/
- LYAddPathToHome(filename_buffer,
- sizeof(filename_buffer),
- BookmarkPage);
+ if ( *BookmarkPage != '/' )
+ LYAddPathToHome(filename_buffer,
+ sizeof(filename_buffer),
+ BookmarkPage);
+ else
+ strncpy(filename_buffer, BookmarkPage, sizeof(filename_buffer)-1);
}
--
Larry W. Virden <URL: mailto:address@hidden>
<URL: http://www.purl.org/NET/lvirden/> <*> O- "No one is what he seems."
Unless explicitly stated to the contrary, nothing in this posting should
be construed as representing my employer's opinions.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev supporting full pathnames,
Larry W. Virden <=