From: erickson Date: Fri, 4 Mar 2005 22:37:21 +0000 (+0000) Subject: history and config file checking are more granular as far as what we X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0f9e5e92d00b39275a58a63e791dd78d264262cc;p=opensrf%2Fbjwebb.git history and config file checking are more granular as far as what we can do with the file git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@179 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/srfsh/srfsh.c b/src/srfsh/srfsh.c index 063c153..15b2e23 100644 --- a/src/srfsh/srfsh.c +++ b/src/srfsh/srfsh.c @@ -14,7 +14,7 @@ int main( int argc, char* argv[] ) { memset(fbuf, 0, l); sprintf(fbuf,"%s/.srfsh.xml",home); - if(!access(fbuf, F_OK)) { + if(!access(fbuf, R_OK)) { if( ! osrf_system_bootstrap_client(fbuf) ) fatal_handler( "Unable to bootstrap client for requests"); @@ -78,7 +78,7 @@ int load_history() { sprintf(fbuf,"%s/.srfsh_history",home); history_file = strdup(fbuf); - if(!access(history_file, F_OK)) { + if(!access(history_file, W_OK | R_OK )) { //set_history_length(999); history_length = 999; read_history(history_file);