@@ -155,11 +155,11 @@ int dryRunFlag = 0; int showFile = find_option("showfile",0,0)!=0; int stopOnError = find_option("dontstop",0,0)==0; int rc; int nToDel = 0; - + dryRunFlag = find_option("dry-run","n",0)!=0; if( !dryRunFlag ){ dryRunFlag = find_option("test",0,0)!=0; /* deprecated */ } @@ -282,11 +282,11 @@ ); } db_multi_exec("CREATE TEMP TABLE todel(x TEXT)"); while( db_step(&q)==SQLITE_ROW ){ const char *zFilename = db_column_text(&q, 0); - if( file_access(zFilename, 0) + if( file_access(zFilename, F_OK) || !file_is_canonical(zFilename) || (useCheckouts && file_isdir(zFilename)!=1) ){ db_multi_exec("INSERT INTO todel VALUES(%Q)", db_column_text(&q, 1)); nToDel++; @@ -312,11 +312,11 @@ if( stopOnError && rc ){ break; } } db_finalize(&q); - + /* If any repositories whose names appear in the ~/.fossil file could not ** be found, remove those names from the ~/.fossil file. */ if( nToDel>0 ){ const char *zSql = "DELETE FROM global_config WHERE name IN toDel";