亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rcfile.c

?? 站點映像程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*    sitecopy, for managing remote web sites.   Copyright (C) 1998-99, Joe Orton <joe@orton.demon.co.uk>                                                                        This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2 of the License, or   (at your option) any later version.     This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.     You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   $Id: rcfile.c,v 1.11.2.7 1999/08/19 21:43:26 joe Exp $*/#include <config.h>#include <sys/types.h>#include <sys/stat.h>#include <ctype.h>#include <errno.h>#ifdef HAVE_STRING_H#include <string.h>#endif#ifdef HAVE_STRINGS_H#include <strings.h>#endif #ifdef HAVE_STDLIB_H#include <stdlib.h>#endif /* HAVE_STDLIB_H */#ifdef HAVE_UNISTD_H#include <unistd.h>#endif /* HAVE_UNISTD_H */#include "common.h"#include "netrc.h"#include "rcfile.h"#include "socket.h"#include "sites.h"/** Global variables **/char *copypath;char *rcfile;char *netrcfile;char *home;bool havenetrc;/* These are used for reporting errors back to the calling procedures. */int rcfile_linenum; char *rcfile_err;/** Not quite so global variables **//* These are appeneded to $HOME */#define RCNAME "/." PACKAGE "rc"#define COPYNAME "/." PACKAGE "/"#define NETRCNAME "/.netrc"/* Stores the list of entries in the ~/.netrc */netrc_entry *netrc_list;const char *rc_get_netrc_password( const char *server, const char *username );/* rcfile_read will read the rcfile and fill given sites list. * This returns 0 on success, RC_OPENFILE if the rcfile could not * be read, or RC_CORRUPT if the rcfile was corrupt. * If it is corrupt, rcfile_linenum and rcfile_line are set to the * the corrupt line. */int rcfile_read( struct site_t **sites ) {    FILE *fp;    int state, last_state=8, ret=0;    bool alpha, hash;    char buf[BUFSIZ];    char *ch;    char *ptr, key[BUFSIZ], val[BUFSIZ], val2[BUFSIZ];    /* Holders for the site info */    struct site_t *this_site, *last_site;    if( (fp = fopen( rcfile, "r" )) == NULL ) {	rcfile_err = strerror( errno );	return RC_OPENFILE;    }     last_site = this_site = NULL;    rcfile_linenum = 0;    rcfile_err = NULL;    while( fgets( buf, sizeof(buf), fp ) != NULL ) {	rcfile_linenum++;	/* Put the line without the LF into the error buffer */	if( rcfile_err != NULL ) free( rcfile_err );	rcfile_err = strdup( buf );	ptr = strchr( rcfile_err, '\n' );	if( ptr != NULL ) *ptr = '\0';	state = 0;	ptr = key;	memset( key, 0, BUFSIZ );	memset( val, 0, BUFSIZ );	memset( val2, 0, BUFSIZ );	for( ch=buf; *ch!='\0'; ch++ ) {	    alpha = !isspace((unsigned)*ch); /* well, alphaish */	    hash = (*ch == '#');	    switch( state ) {	    case 0: /* whitespace at beginning of line */		if(hash) {		    state = 8;		} else if(alpha) {		    *(ptr++) = *ch;		    state = 1;		}		break;	    case 1: /* key */		if(hash) {		    state = 8;		} else if(!alpha) {		    ptr = val;		    state = 2;		} else {		    *(ptr++) = *ch;		}		break;	    case 2: /* whitespace after key */		if(hash) {		    state = 8;		} else if( *ch == '"' ) {		    state = 4; /* begin quoted value */		} else if ( alpha ) {		    *(ptr++) = *ch;		    state = 3;		} 		break;	    case 3: /* unquoted value 1 */		if(hash) {		    state = 8;		} else if( !alpha ) {		    ptr = val2;		    state = 5;		} else {		    *(ptr++) = *ch;		}		break;	    case 4: /* quoted value 1 */		if( *ch == '"' ) {		    ptr = val2;		    state = 5;		} else if( *ch == '\\' ) {		    last_state = 4;		    state = 9;		} else {		    *(ptr++) = *ch;		}		break;	    case 5: /* whitespace after value 1 */		if(hash) {		    state = 8;		} else if( *ch == '"' ) {		    state = 6; /* begin quoted value 2 */		} else if ( alpha ) {		    *(ptr++) = *ch;		    state = 7; /* begin unquoted value 2 */		} 		break;	    case 6: /* quoted value 2 */		if( *ch == '"' ) {		    state = 8;		} else if( *ch == '\\' ) {		    last_state = 4;		    state = 9;		} else {		    *(ptr++) = *ch;		}		break;	    case 7: /* unquoted value 2 */		if(hash) {		    state = 8;		} else if( !alpha ) {		    state = 8;		} else {		    *(ptr++) = *ch;		}		break;	    case 8: /* ignore till end of line */		break;	    case 9: /* a literal (\-slashed) in a value */		*(ptr++) = *ch;		state = last_state;		break;	    }	}		DEBUG( DEBUG_RCFILE, "Key [%s] Value: [%s] Value2: [%s]\n", key, val, val2);		if( strlen( key ) == 0 ) {	    continue;	}	if( strlen( val ) == 0 ) {	    /* A key with no value. */	    if( this_site == NULL ) {		/* Need to be in a site! */		ret = RC_CORRUPT;		break;	    }	    if( strcmp( key, "nodelete" ) == 0 ) {		this_site->nodelete = true;	    } else if( strcmp( key, "checkmoved" ) == 0 ) {		this_site->checkmoved = true;	    } else if( strcmp( key, "nooverwrite" ) == 0 ) {		this_site->nooverwrite = true;	    } else {		ret = RC_CORRUPT;		break;	    }	} else if( strlen( val2 ) == 0 ) {	    /* A key with a single value. */	    if( strcmp( key, "site" ) == 0 ) {		/* Beginning of a new Site */		last_site = this_site;		/* Allocate new item */		this_site = malloc( sizeof( struct site_t ) );		/* Zero it out */		memset( this_site, 0, sizeof( struct site_t ) );		this_site->prev = last_site;		if( last_site != NULL ) { /* next site */		    last_site->next = this_site;		} else { /* First site */		    *sites = this_site;		}		this_site->name = strdup( val );		this_site->files = NULL;		/* defaults... */		this_site->perms = sitep_ignore;		this_site->symlinks = sitesym_follow;		this_site->nodelete = false;		this_site->checkmoved = false;		this_site->driver = &ftp_driver;		this_site->ftp_pasv_mode = true;		/* Now work out the info filename */		this_site->infofile = malloc( strlen(copypath) + strlen(val) + 1);		strcpy( this_site->infofile, copypath );		strcat( this_site->infofile, val );	    } else if( this_site == NULL ) {		ret = RC_CORRUPT;		break; 	    } else if( strcmp( key, "username" ) == 0 ) {		/* username */		this_site->username = strdup( val );	    } else if( strcmp( key, "server" ) == 0 ) {		this_site->server = strdup( val );	    } else if( strcmp( key, "port" ) == 0 ) {		this_site->port = atoi( val );	    } else if( strcmp( key, "proxy-server" ) == 0 ) {		this_site->proxy_server = strdup( val );	    } else if( strcmp( key, "proxy-port" ) == 0 ) {		this_site->proxy_port = atoi( val );	    } else if( strcmp( key, "proxy-password" ) == 0 ) {		this_site->proxy_password = strdup( val );	    } else if( strcmp( key, "proxy-username" ) == 0 ) {		this_site->proxy_username = strdup( val );	    } else if( strcmp( key, "password" ) == 0 ) {		this_site->password = strdup( val );	    } else if( strcmp( key, "url" ) == 0 ) {	        this_site->url = strdup( val );	    } else if( strcmp( key, "remote" ) == 0 ) {		/* Relative filenames must start with "~/" */		if( val[0] == '~' ) {		    if( val[1] == '/' ) {			this_site->remote_isrel = true;		    } else {			ret = RC_CORRUPT;			break; 		    }		} else {		    /* Dirname doesn't begin with "~/" */		    this_site->remote_isrel = false;		}		if( val[strlen(val)-1] != '/' )		    strcat( val, "/" );		this_site->remote_root_user = strdup( val );	    } else if( strcmp( key, "local" ) == 0 ) {		/* Relative filenames must start with "~/" */		if( val[0] == '~' ) {		    if( val[1] == '/' ) {			this_site->local_isrel = true;		    } else {			ret = RC_CORRUPT;			break; 		    }		} else { 		    /* Dirname doesn't begin with a "~/" */		    this_site->local_isrel = false;		}		if( val[strlen(val)-1] != '/' )		    strcat( val, "/" );		this_site->local_root_user = strdup( val );	    } else if( strcmp( key, "permissions") == 0 ) {		if( strcmp( val, "ignore" ) == 0 ) {		    this_site->perms = sitep_ignore;		} else if( strcmp( val, "exec" ) == 0 ) {		    this_site->perms = sitep_exec;		} else if( strcmp( val, "all" ) == 0 ) {		    this_site->perms = sitep_all;		} else {		    ret = RC_CORRUPT;		    break;		}	    } else if( strcmp( key, "symlinks" ) == 0 ) {		if( strcmp( val, "follow" ) == 0 ) {		    this_site->symlinks = sitesym_follow;		} else if( strcmp( val, "maintain" ) == 0 ) {		    this_site->symlinks = sitesym_maintain;		} else if( strcmp( val, "ignore" ) == 0 ) {		    this_site->symlinks = sitesym_ignore;		} else {		    ret = RC_CORRUPT;		    break;		}	    } else if( strcmp( key, "exclude" ) == 0 ) {		struct exclude_t *newex;		newex = malloc( sizeof( struct exclude_t ) );		newex->next = this_site->excludes;		newex->prev = NULL;		if( this_site->excludes != NULL )		    this_site->excludes->prev = newex;		this_site->excludes = newex;		newex->pattern = strdup( val );		if( strchr( val, '/' ) != NULL ) {		    newex->haspath = true;		} else {		    newex->haspath = false;		}	    } else if( strcmp( key, "ascii") == 0 ) {		/* Find the position in the array */		this_site->ascii[this_site->numascii] = strdup(val);		this_site->numascii++;	    } else if( strcmp( key, "protocol" ) == 0 ) {		if( strcmp( val, "ftp" ) == 0 ) {		    this_site->protocol = siteproto_ftp;		    this_site->driver = &ftp_driver;		}#ifdef USE_DAV

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一区二区三区在线观看| 51精品秘密在线观看| 欧美精品久久99| 久久久亚洲精华液精华液精华液| 亚洲精品国产视频| 国产在线精品免费| 欧美在线播放高清精品| 在线综合+亚洲+欧美中文字幕| 国产精品久久久久桃色tv| 欧美视频一二三区| 国产欧美日韩综合精品一区二区| 老司机精品视频线观看86| 中文无字幕一区二区三区| 免费日韩伦理电影| 91国偷自产一区二区三区观看 | 精品一二三四区| 成人av在线网站| 久久综合久久久久88| 日韩黄色在线观看| 欧美在线观看一区二区| 综合中文字幕亚洲| 国产91精品一区二区| 亚洲精品一区二区精华| 日韩电影在线观看一区| 欧美日本韩国一区| 五月天亚洲婷婷| 欧美在线观看18| 一级中文字幕一区二区| 91美女视频网站| 亚洲素人一区二区| 在线免费观看日本欧美| 一区二区三区蜜桃| 欧美午夜一区二区三区| 亚洲国产中文字幕在线视频综合| 色八戒一区二区三区| 亚洲午夜久久久久久久久久久| 久久久精品蜜桃| 麻豆精品一二三| 精品国产伦一区二区三区免费| 蜜桃久久精品一区二区| 欧美成人vr18sexvr| 国产一区二区三区四区五区美女| 欧美精品一区二区蜜臀亚洲| 国产精品中文欧美| 中文字幕字幕中文在线中不卡视频| av在线一区二区三区| 一区二区三区精品在线观看| 欧美三级日本三级少妇99| 无码av免费一区二区三区试看 | 成人黄色在线网站| 亚洲欧美日韩一区| 欧美乱熟臀69xxxxxx| 精品无码三级在线观看视频| 久久精品男人的天堂| 成人国产精品免费网站| 亚洲国产一区二区在线播放| 日韩一区二区三区视频在线| 国产一区二区伦理| 亚洲色图清纯唯美| 欧美三级在线看| 精久久久久久久久久久| 亚洲欧洲综合另类| 欧美成人欧美edvon| 成人av高清在线| 亚洲综合激情小说| 欧美va亚洲va| 在线一区二区视频| 韩国理伦片一区二区三区在线播放| 国产人久久人人人人爽| 欧美综合色免费| 黄色日韩网站视频| 亚洲欧美偷拍卡通变态| 91精品国产91久久久久久最新毛片 | 欧美精品一区二区三区在线| av一区二区三区四区| 日韩国产一区二| 中文字幕一区免费在线观看| 欧美一区二区视频观看视频| 99久久久精品免费观看国产蜜| 日韩av不卡一区二区| 亚洲色图在线播放| 国产欧美一区二区精品性| 欧美色图在线观看| 成人蜜臀av电影| 激情小说欧美图片| 天天综合色天天综合色h| 国产精品嫩草影院com| 日韩免费一区二区三区在线播放| 色综合色综合色综合| 国产精品亚洲一区二区三区妖精| 亚洲一级二级三级| 亚洲精品日韩一| 国产精品婷婷午夜在线观看| 日本麻豆一区二区三区视频| 色婷婷综合久久久中文字幕| 亚洲一区二区在线播放相泽| 国产在线播放一区三区四| 日韩美女视频在线| 五月婷婷色综合| 自拍偷拍国产亚洲| 国产精品中文字幕欧美| 日本一区二区免费在线观看视频| 久久精品免费在线观看| 国产精品一区一区三区| 美女视频黄免费的久久| 视频一区二区三区中文字幕| 夜夜爽夜夜爽精品视频| 亚洲久草在线视频| 国产精品第四页| 久久久久99精品国产片| 久久亚洲春色中文字幕久久久| 日韩一区二区三区视频在线观看| 欧美福利一区二区| 欧美高清www午色夜在线视频| 欧洲av一区二区嗯嗯嗯啊| 日本韩国一区二区| 欧美午夜精品一区二区三区| 欧美日韩中字一区| 欧美久久久久久久久中文字幕| 在线中文字幕不卡| 在线成人小视频| 日韩一级片在线播放| 精品国产乱码久久久久久浪潮 | 国产精品一区在线观看你懂的| 久久精品国产77777蜜臀| 久久99久久久久久久久久久| 九九视频精品免费| 国产成人aaa| 91麻豆免费视频| 欧美优质美女网站| 欧美一区二区在线观看| www国产精品av| 欧美国产一区在线| 亚洲啪啪综合av一区二区三区| 亚洲一区在线观看视频| 成人av在线影院| 色八戒一区二区三区| 91精品国产麻豆| 久久女同性恋中文字幕| 中文字幕日本乱码精品影院| 亚洲最新视频在线播放| 免费不卡在线视频| 成人午夜av影视| 91行情网站电视在线观看高清版| 欧美精品在欧美一区二区少妇| 欧美va天堂va视频va在线| 国产精品久久久久影院亚瑟| 亚洲超碰97人人做人人爱| 久久国产精品72免费观看| 不卡视频一二三| 欧美美女喷水视频| 国产日韩精品久久久| 一区二区久久久久| 国产一区高清在线| 色偷偷一区二区三区| 精品国产免费一区二区三区四区 | 国产亚洲成av人在线观看导航| 成人欧美一区二区三区黑人麻豆| 五月天激情综合网| 国产激情偷乱视频一区二区三区 | 亚洲成人你懂的| 国产成人免费在线观看| 欧美人与性动xxxx| 中文字幕一区二区日韩精品绯色| 天堂一区二区在线免费观看| 成人精品一区二区三区四区| 欧美一级夜夜爽| 亚洲最大成人综合| 大陆成人av片| 日韩一区二区三区高清免费看看| 亚洲欧美另类久久久精品| 韩日欧美一区二区三区| 欧美亚洲动漫制服丝袜| 国产精品国产三级国产aⅴ中文| 麻豆国产欧美一区二区三区| 精品视频一区二区不卡| 国产精品久久久久久久浪潮网站| 精品写真视频在线观看| 欧美精三区欧美精三区| 专区另类欧美日韩| 成人黄色软件下载| 国产欧美一区二区在线观看| 精品伊人久久久久7777人| 欧美福利视频一区| 亚洲成在人线在线播放| 91久久一区二区| 综合欧美一区二区三区| 成人综合在线网站| 久久精品无码一区二区三区| 久久精品国产亚洲aⅴ| 欧美精品在线观看播放| 婷婷久久综合九色综合伊人色| 91精品办公室少妇高潮对白| 亚洲精品视频免费看| 91在线你懂得| |精品福利一区二区三区| 成人激情免费电影网址| 国产精品久久久久久久久搜平片 | 精品亚洲免费视频| 欧美变态tickle挠乳网站|