diff options
author | jbj <devnull@localhost> | 1998-12-14 21:34:11 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-12-14 21:34:11 +0000 |
commit | ce37ae3d9d7c48e14e710ca94f6e10cfb1592fc8 (patch) | |
tree | 088849491de976badd3cf3d0432c33e7a4e5899b /url.h | |
parent | 80693fe2cecbdf8f8f0e95737dba4f1fbcf2ba59 (diff) | |
download | librpm-tizen-ce37ae3d9d7c48e14e710ca94f6e10cfb1592fc8.tar.gz librpm-tizen-ce37ae3d9d7c48e14e710ca94f6e10cfb1592fc8.tar.bz2 librpm-tizen-ce37ae3d9d7c48e14e710ca94f6e10cfb1592fc8.zip |
permit http:// and file:// url's as well as ftp://.
attempt ftp ABOR on query/verify url's.
cache open ftp control descriptor with password.
verify needed same realpath semantics as query.
plug fd leak in urlGetFile().
CVS patchset: 2598
CVS date: 1998/12/14 21:34:11
Diffstat (limited to 'url.h')
-rw-r--r-- | url.h | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -5,18 +5,17 @@ typedef enum { URL_IS_UNKNOWN = 0, URL_IS_DASH = 1, URL_IS_PATH = 2, - URL_IS_FILE = 3, - URL_IS_FTP = 4, - URL_IS_HTTP = 5, + URL_IS_FTP = 3, + URL_IS_HTTP = 4, } urltype; typedef struct urlinfo { - char *service; - char *user; - char *password; - char *host; - char *portstr; - char *path; + const char *service; + const char *user; + const char *password; + const char *host; + const char *portstr; + const char *path; int port; int ftpControl; } urlinfo; @@ -37,7 +36,7 @@ void freeUrlinfo(urlinfo *u); FD_t ufdOpen(const char * pathname, int flags, mode_t mode); int ufdClose(FD_t fd); -int urlGetFile(char * url, char * dest); +int urlGetFile(const char * url, const char * dest); #ifdef __cplusplus } |