亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
黑人精品欧美一区二区蜜桃| 国产日韩欧美不卡在线| 精品少妇一区二区三区 | 日韩精品一级二级| 久99久精品视频免费观看| 国产大陆亚洲精品国产| 在线中文字幕一区| 欧美成人三级电影在线| 国产精品久线观看视频| 午夜精品久久久久久久| 国产成人免费在线视频| 欧美视频一区二区三区四区 | 国产精品456露脸| 色噜噜狠狠成人中文综合| 日韩一区二区三区电影| 国产精品免费aⅴ片在线观看| 亚洲图片一区二区| 国产精品18久久久久久久网站| 91老司机福利 在线| 日韩精品一区二区在线| 综合欧美亚洲日本| 狠狠色丁香久久婷婷综合_中| 一本到高清视频免费精品| 日韩女优电影在线观看| 尤物视频一区二区| 国产精品亚洲成人| 7777精品伊人久久久大香线蕉最新版 | 国产精品天干天干在线综合| 婷婷综合久久一区二区三区| 成人av资源在线观看| 91精品国产高清一区二区三区 | 国产不卡在线视频| 91麻豆精品久久久久蜜臀| 国产精品久99| 久久99精品视频| 欧美日韩国产成人在线免费| 国产精品视频yy9299一区| 精品一区二区三区在线观看国产 | 一区二区高清视频在线观看| 国产精品一区二区视频| 欧美日韩卡一卡二| 亚洲精品五月天| 懂色av中文一区二区三区| 日韩欧美一区二区三区在线| 亚洲国产日韩av| 99精品视频一区二区三区| 久久久久久一级片| 久草中文综合在线| 日韩亚洲欧美成人一区| 亚洲成人综合网站| 91国偷自产一区二区三区观看| 国产蜜臀97一区二区三区 | 欧美极品美女视频| 国产综合一区二区| 欧美xxxxxxxx| 秋霞电影网一区二区| 精品1区2区3区| 亚洲综合一区二区三区| 91色在线porny| 欧美韩国一区二区| 国产精品亚洲第一 | 99久免费精品视频在线观看| 久久久久久毛片| 国内精品国产三级国产a久久| 日韩欧美高清一区| 精品一区中文字幕| 精品国产网站在线观看| 日韩精品欧美精品| 337p亚洲精品色噜噜| 亚洲超碰精品一区二区| 欧美日韩一区二区电影| 亚洲午夜久久久久中文字幕久| 色综合天天综合| 一区二区三区在线免费播放| 色偷偷88欧美精品久久久| 亚洲欧美视频一区| 欧美性视频一区二区三区| 亚洲国产三级在线| 91精品中文字幕一区二区三区| 日日骚欧美日韩| 91精品久久久久久久久99蜜臂| 日本人妖一区二区| 精品少妇一区二区三区在线播放 | 精品少妇一区二区三区在线视频| 久久国产精品色婷婷| 精品99999| 国产69精品久久久久777| 国产精品国产自产拍高清av| 91丝袜呻吟高潮美腿白嫩在线观看| 国产精品每日更新在线播放网址| eeuss鲁片一区二区三区在线看| 亚洲欧美在线视频观看| 日本韩国精品一区二区在线观看| 亚洲国产欧美一区二区三区丁香婷| 欧美日韩精品电影| 狠狠色丁香久久婷婷综合丁香| 日本一区二区三级电影在线观看| caoporen国产精品视频| 一区二区在线观看视频在线观看| 欧美日韩精品免费观看视频| 久久99精品久久久| 欧美极品aⅴ影院| 欧美亚洲动漫精品| 蜜乳av一区二区三区| 国产欧美日韩视频一区二区| 色中色一区二区| 三级影片在线观看欧美日韩一区二区| 日韩一区二区三区免费观看| 国产福利一区二区三区视频| 亚洲三级电影网站| 欧美精品xxxxbbbb| 国产精品888| 亚洲黄色片在线观看| 日韩欧美国产一二三区| 成人黄色国产精品网站大全在线免费观看| 亚洲欧美激情小说另类| 91精品国产综合久久福利软件| 国产精品18久久久久久久久久久久| 一区二区三区四区在线| 日韩欧美国产综合在线一区二区三区| 成人免费高清视频在线观看| 亚洲妇女屁股眼交7| 久久久久成人黄色影片| 欧美色区777第一页| 国产乱码精品一区二区三区忘忧草| 亚洲同性gay激情无套| 欧美va亚洲va| 色老汉一区二区三区| 极品销魂美女一区二区三区| 亚洲人成伊人成综合网小说| 欧美mv日韩mv亚洲| 色婷婷综合久久久久中文一区二区 | 不卡欧美aaaaa| 免费高清成人在线| 亚洲精品国产一区二区精华液| 精品日韩一区二区| 欧美亚洲国产怡红院影院| 粉嫩av亚洲一区二区图片| 日本少妇一区二区| 一区二区日韩电影| 国产欧美日韩中文久久| 日韩一区二区在线播放| 色天使色偷偷av一区二区| 国产精品乡下勾搭老头1| 免费在线看成人av| 亚洲一区二区综合| 亚洲欧洲日产国码二区| 亚洲精品在线一区二区| 制服丝袜中文字幕一区| 欧美中文一区二区三区| 99在线视频精品| 国产mv日韩mv欧美| 精品一区二区三区免费播放 | 欧美一区二区国产| 欧美无砖砖区免费| 99久久国产免费看| 国产精品99久久久久久似苏梦涵| 免费成人你懂的| 亚洲成人tv网| 亚洲综合激情小说| 亚洲欧洲日产国码二区| 欧美国产精品v| 国产亚洲综合色| 欧美精品一区二区在线观看| 91精品中文字幕一区二区三区| 欧美午夜精品久久久久久孕妇| 色婷婷综合在线| 91国产精品成人| 91麻豆福利精品推荐| www.亚洲激情.com| bt7086福利一区国产| 不卡一区二区中文字幕| 波多野结衣视频一区| www.66久久| av电影在线观看一区| 粉嫩av一区二区三区粉嫩| 国产99久久久国产精品潘金| 国产乱人伦偷精品视频不卡| 国产精品白丝jk黑袜喷水| 国产精品综合在线视频| 国产伦精品一区二区三区视频青涩| 久久精品国产精品青草| 激情综合色综合久久| 国精品**一区二区三区在线蜜桃| 国产在线不卡视频| 国产精品自拍三区| 国产成人精品免费看| 成人免费av网站| 91首页免费视频| 91福利在线观看| 欧美日韩一区二区三区四区 | 日韩国产精品久久| 蜜臀精品一区二区三区在线观看| 免费成人在线播放| 国产精品综合网| av在线不卡电影| 欧洲一区二区三区免费视频| 欧美日韩你懂得| 日韩一卡二卡三卡国产欧美| 久久综合一区二区|