Subject: Bug#3530: dchanges can create bad changes file

From: Guy Maor <[email-masked]>
Date: Fri, 5 Jul 96 23:21 CDT

Package: dchanges
Version: 3.4

If dchanges is run without a section given on the command line, it will
create a corrupt changes file.  The file lines for the source files will
only have 4 fields.

The following patch fixes the problem.

--- dchanges.old        Fri Jul  5 23:20:07 1996
+++ dchanges    Fri Jul  5 23:21:20 1996
@@ -230,7 +230,7 @@
        echo    "WARNING: more than one section field found: ${SECTIONS}"
        warning "         using $SECTION"
       else
-       SECTION="${SECTIONS}"
+       SECTION="${SECTIONS:--}"
       fi
     fi
     echo "Files:" >>$OUTFILE

Guy