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

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

?? find_path.c

?? A* sudo sudo/* B* adduser script adduser C* rmuser script rmuser E* tout tout/*
?? C
字號:
/* *  sudo version 1.1 allows users to execute commands as root *  Copyright (C) 1991  The Root Group, Inc. * *  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 1, 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. * *  If you make modifications to the source, we would be happy to have *  them to include in future releases.  Feel free to send them to: *      Jeff Nieusma                       nieusma@rootgroup.com *      3959 Arbol CT                      (303) 447-8093 *      Boulder, CO 80301-1752              * ******************************************************************* * *  This module contains the find_path() command that returns *  a pointer to a static area with the absolute path of the  *  command or NULL if the command is not found in the path * *  I also added the strdup() function in here after I found most *  systems don't have it... * *  Jeff Nieusma  Thu Mar 21 23:11:23 MST 1991 */#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/param.h>#include <string.h>#include <strings.h>extern char *malloc();extern char *getenv();extern char **Argv;char *find_path();static char *do_stat();static char *check_link();char *strdup();/******************************************************************* * * find_path() * * this function finds the full pathname for a command */char *find_path(file)char *file;{register char *n;char *path=NULL;char *cmd;if ( strlen ( file ) > MAXPATHLEN ) {    fprintf ( stderr, "%s:  path too long:  %s\n", Argv[0], file );    exit (1);    }    if ( *file == '.' && *(file+1) == '/' || *file == '/' )     return ( do_stat ( NULL, file ) );if ( ( path=getenv("PATH") ) == NULL ) return ( NULL ) ;if ( ( path=strdup(path) ) == NULL ) {    perror ( "find_path:  malloc" );    exit (1);    }while ( n = index ( path, ':' ) ) {    *n='\0';    if ( cmd = do_stat ( path, file ) ) return ( cmd );    path=n+1;    }if ( cmd = do_stat ( path, file ) )     return ( cmd );else    return ( NULL );	}/********************************************************************** *  * check_link() *  * this function makes sure the argument is not a symbolic link. * it returns the pathname of the binary or NULL */static char *check_link(path)char *path;{char buf1[MAXPATHLEN+1];    /* is the link */char *s, *buf;register int rtn;/* the recursive buck stops here */if ( path == NULL ) return NULL ;/* I'd rather play with pointers than arrays... */buf = buf1;/* If this is NOT a sym link, return */if ( ( rtn=readlink(path, buf, MAXPATHLEN)) < 0 )    return (path);/* if it is a sym link, NULL terminate the string */buf[rtn]='\0';/* if the link points to an absolute path, start again... */if ( *buf == '/' ) return ( do_stat( NULL, buf ) );/* if the link points to ./something or something/ we need to  * strip off the filename portion of the current path */if ( ( s=rindex(path,'/') ) == NULL ) {    fprintf( stderr, "check_link:  This path is very wierd: %s \n", path );    exit (1);    }else    *s='\0';/* as long as the link has ./ or ../ in it, get rid of it... */while ( *buf == '.' ) {    if ( strncmp(buf, "../", 3) == 0 ) {	if ( ( s=rindex(path, '/')) ) {            *s='\0';	    if ( *path == '\0' ) strcpy ( path, "/" );	    }	buf += 3; 	continue;	}    else if ( strncmp(buf, "./", 2) == 0 ) {	buf += 2;	continue;	}    else 	break;    }/* we have to copy the path buffer since do_stat() will bzero() it */if ( ( s = strdup ( path ) ) == NULL ) {    perror ( "check_link:  malloc" );    exit (1);    }return ( do_stat ( s, buf ) );}/****************************************************************** * *   do_stat() * *    This function takes a path and a file and stat()s the file *    If the file exists, the full path to that file is returned *    otherwise NULL is returned */static char *do_stat( path, file )char *path, *file;{static char buf[MAXPATHLEN+1];struct stat s;register char type;if ( *file == '.' && *(file+1) == '/' )     type=1;else  if ( *file == '/' )    type=2;else  if ( path == NULL )    type=2;else  if ( *path == '.' && *(path+1) == (char)NULL )    type=3;else    type=0;switch ( type ) {    case 1:        file += 2;    case 3:	if ( (path=(char *)malloc(MAXPATHLEN+1)) == NULL ) {	    perror ("do_stat:  malloc");	    exit (1);	    }	if ( ! getwd ( path ) ) {	    perror ("do_stat:  getwd");	    exit (1);	    }        break;    case 2:    default:        break;    }        if ( ( ( path? strlen(path) : 0 ) + strlen (file) ) > MAXPATHLEN - 1 ) {    fprintf ( stderr, "%s:  path too long:  %s/%s\n", Argv[0], path, file );    exit (1);    }bzero ( buf, MAXPATHLEN+1 );if ( path ) strcat ( buf, path );if ( *file != '/' && path [strlen(path)-1] != '/' ) strcat ( buf, "/" );strcat ( buf, file );if ( ! stat ( buf, &s ) )    return ( check_link ( buf ) );else    return ( NULL );}/****************************************************************** * *  strdup() * *  this function returns a pointer a string copied into  *  a malloc()ed buffer */char *strdup(s1)char *s1;{char *s;if ( ( s=(char *)malloc(strlen(s1)+1)) == NULL )    return (NULL);strcpy(s,s1);return (s);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲电影一级片| 国产一区二区美女| 久久av老司机精品网站导航| 国产精品一区二区三区四区| 色综合久久66| 日韩欧美国产电影| 欧美成人一级视频| 亚洲免费资源在线播放| 美女尤物国产一区| 国产精品美女久久久久久久久| 99久久国产综合精品色伊| 亚洲资源中文字幕| 欧美成人性福生活免费看| 国产乱色国产精品免费视频| 欧美成人激情免费网| 欧美美女视频在线观看| 国产日本欧洲亚洲| 婷婷丁香激情综合| 91网站视频在线观看| 欧美电视剧免费全集观看| 亚洲综合一区二区| 国产成人精品www牛牛影视| 欧美日韩国产影片| 综合中文字幕亚洲| 日本伊人色综合网| 一本到高清视频免费精品| 欧美电影免费观看高清完整版在| 亚洲精品日韩一| 国产成人精品亚洲日本在线桃色| 9191国产精品| 亚洲一区二区视频在线观看| 粉嫩aⅴ一区二区三区四区| 欧美mv和日韩mv的网站| 亚洲情趣在线观看| 不卡高清视频专区| 国产女人18毛片水真多成人如厕| 久久超级碰视频| 欧美精品xxxxbbbb| 亚洲国产日韩综合久久精品| 一本色道a无线码一区v| 国产女同性恋一区二区| 精品无人码麻豆乱码1区2区| 91精品久久久久久久99蜜桃| 日本一区二区视频在线| 国产成人精品综合在线观看 | 久久久久国色av免费看影院| 日韩av电影天堂| 337p亚洲精品色噜噜噜| 亚洲视频图片小说| 色婷婷综合久久久中文字幕| 91久久国产最好的精华液| 色婷婷精品久久二区二区蜜臀av| 99国产精品国产精品久久| 中文字幕免费观看一区| 国产精品小仙女| 欧美一级欧美三级在线观看| 日韩成人精品在线观看| 日韩欧美国产成人一区二区| 国内精品久久久久影院色| 欧美激情资源网| 欧美三区在线视频| 国产.精品.日韩.另类.中文.在线.播放| 国产精品无码永久免费888| 欧美影片第一页| 国产精品1区2区3区在线观看| 17c精品麻豆一区二区免费| 欧美老肥妇做.爰bbww| 懂色av中文字幕一区二区三区 | 综合色天天鬼久久鬼色| 欧美在线视频全部完| 精品一区二区国语对白| 亚洲欧洲制服丝袜| 精品国产乱码久久久久久1区2区| 99久久99精品久久久久久| 蜜臂av日日欢夜夜爽一区| 国产精品国产精品国产专区不片 | 欧美高清在线一区二区| 欧美在线色视频| 国产精品一区专区| 蜜桃精品视频在线观看| 一区二区三区四区精品在线视频 | 黑人巨大精品欧美一区| 国产精品久久精品日日| 精品国产免费久久| 99久久精品免费精品国产| 看电影不卡的网站| 国产视频视频一区| 成人免费在线播放视频| 51久久夜色精品国产麻豆| 97se狠狠狠综合亚洲狠狠| 久久99精品视频| 香蕉成人啪国产精品视频综合网| 国产精品久久久久婷婷| 欧美精品一区二| 欧美一区二区黄| 欧美男生操女生| 欧美性猛片xxxx免费看久爱| 成人av电影观看| 高清shemale亚洲人妖| 国产精品亚洲视频| 韩国视频一区二区| 免费视频一区二区| 日韩精品亚洲一区二区三区免费| 夜夜操天天操亚洲| 一区二区欧美精品| 亚洲综合小说图片| 亚洲一区二区三区美女| 亚洲综合在线免费观看| 亚洲激情自拍视频| 亚洲午夜免费电影| 亚洲不卡一区二区三区| 成人精品亚洲人成在线| 天天免费综合色| 一级做a爱片久久| 1024国产精品| 亚洲三级在线观看| 亚洲免费观看高清完整版在线观看熊| 国产精品夫妻自拍| 一区二区三区中文在线观看| 亚洲免费毛片网站| 亚洲国产日韩a在线播放| 丝袜脚交一区二区| 日韩国产一二三区| 美女网站色91| 国产成人av电影免费在线观看| 国产福利一区在线| 高清在线不卡av| 色噜噜久久综合| 8v天堂国产在线一区二区| 精品国产乱码久久久久久久久| 国产亚洲精久久久久久| 亚洲视频一区在线| 午夜日韩在线电影| 国产一区二区三区四区五区入口| 成人美女在线视频| 在线观看视频一区| 欧美电影免费观看高清完整版 | 一区二区三区高清不卡| 国产精品女同互慰在线看| 国产精品久久久久久久久免费丝袜| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 亚洲欧美日韩久久| 午夜精品一区在线观看| 国产尤物一区二区| 色综合天天综合网国产成人综合天| 欧美三级蜜桃2在线观看| 欧美va亚洲va在线观看蝴蝶网| 国产欧美日韩亚州综合| 亚洲精品菠萝久久久久久久| 精品一区二区三区不卡| 91免费看`日韩一区二区| 91精品蜜臀在线一区尤物| 国产精品久久久久久久久免费桃花 | 亚洲自拍欧美精品| 国产拍欧美日韩视频二区| 欧美国产日产图区| 欧美美女bb生活片| 精品国产1区二区| 一区二区三区欧美久久| 国产一区美女在线| 欧美日韩一区二区三区在线看| 国产日韩欧美麻豆| 日本一区中文字幕| 在线免费不卡电影| 欧美国产欧美综合| 九一久久久久久| 欧美蜜桃一区二区三区| 《视频一区视频二区| 国产一区999| 日韩精品一区二区三区中文不卡| 一区二区三区四区激情| 成人做爰69片免费看网站| 欧美va在线播放| 麻豆精品一二三| 欧美日韩亚洲综合| 亚洲一本大道在线| 色综合久久久久久久久久久| 国产目拍亚洲精品99久久精品 | 精品国产凹凸成av人导航| 亚洲精品伦理在线| 成人免费毛片高清视频| 26uuuu精品一区二区| 久久se精品一区精品二区| 欧美精品久久99久久在免费线| 亚洲啪啪综合av一区二区三区| 韩国成人在线视频| 欧美tk丨vk视频| 美女脱光内衣内裤视频久久影院| 欧美日韩一区二区三区免费看| 一区二区三区四区五区视频在线观看| av中文字幕在线不卡| 国产精品久久久久久亚洲毛片| 国产成人亚洲综合a∨婷婷| 亚洲精品一线二线三线无人区| 麻豆精品视频在线观看视频| 日韩欧美一级片| 国产一区二区影院| 国产精品色呦呦| 成人av电影免费在线播放| 亚洲人妖av一区二区|