• R/O
  • SSH
  • HTTPS

tsukurimashou: Commit


Commit MetaInfo

Revision313 (tree)
Time2012-08-19 09:50:52
Authormskala

Log Message

ticket 29119

Change Summary

Incremental Difference

--- trunk/idsgrep/idsgrep.c (revision 312)
+++ trunk/idsgrep/idsgrep.c (revision 313)
@@ -229,9 +229,13 @@
229229 while (optind<argc)
230230 process_file(match_pattern,argv[optind++],num_files>1?0:-1);
231231
232- /* read stdin if no other choices */
233- if ((num_files==0) && (dictname==NULL))
234- process_file(match_pattern,"-",-1);
232+ /* read stdin or complain */
233+ if (num_files==0) {
234+ if (dictname==NULL)
235+ process_file(match_pattern,"-",-1);
236+ else
237+ puts("(no dictionaries were searched)");
238+ }
235239
236240 exit(0);
237241 }
Show on old repository browser