ignore files ending in ~ and directories (so that cvs, rcs, etc work)

--- a/news.c
+++ b/news.c
@@ -251,6 +251,8 @@
       {
 	if(dir->d_name[0] == '.')  /* skip all names starting with '.' */
 	  continue;
+	if(dir->d_name[ strlen(dir->d_name) - 1 ] == '~')
+	  continue;                /* skip all names ending with '~' */
 	if(argv[optind])
 	  {
 	    avc = optind;
@@ -269,6 +271,8 @@
 	    fprintf(stderr, "%s: (%s) %s\n", progname, line, ERRMSG);
 	    continue;
 	  }
+	if (S_ISDIR(st.st_mode))  /* Ignore directories */
+		continue;
 	if(news_time < st.st_mtime || f.all || argv[optind])
 	 {
 	   if(!f.names && !f.items)
