Index: main.c =================================================================== --- main.c (revision 14773) +++ main.c (working copy) @@ -283,13 +283,15 @@ } } - if (os->ind >= argc || os->ind < argc - 2) + if (os->ind > argc || os->ind < argc - 2) { usage(pool); return EXIT_FAILURE; } - SVN_INT_ERR (svn_utf_cstring_to_utf8 (&wc_path, os->argv[os->ind++], pool)); + SVN_INT_ERR (svn_utf_cstring_to_utf8 (&wc_path, + (os->ind == argc) ? "." : os->argv[os->ind++], + pool)); wc_path = svn_path_internal_style (wc_path, pool); SVN_INT_ERR (svn_wc_check_wc (wc_path, &wc_format, pool)); if (! wc_format)