+Tue Nov 7 22:05:48 CET 2000 Wichert Akkerman <wakkerma@debian.org>
+
+ * lib/myopt.c: chop read lines in myfileopt
+
Tue Nov 7 00:45:00 CET 2000 Wichert Akkerman <wakkerma@debian.org>
* scripts/dpkg-statoverride.8: fix typos
+dpkg (1.7.2) unstable; urgency=low
+
+ * Fix parsing of configuration files
+
+ -- Wichert Akkerman <wakkerma@debian.org> UNRELEASED
+
dpkg (1.7.1) unstable; urgency=medium
* Fix a typo in the dpkg-statoveride manpage
char* opt;
const struct cmdinfo *cip;
- if ((linebuf[0]=='#') || (linebuf[0]=='\n')) continue;
+ if ((linebuf[0]=='#') || (linebuf[0]=='\n') || (linebuf[0]==0)) continue;
+ linebuf[strlen(linebuf)-1]=0;
for (opt=linebuf;isalnum(*opt)||*opt=='-';opt++) ;
if (*opt==0)
opt=NULL;
sub WriteOverrides {
my ($file);
- open(SO,"$admindir/statoverride-new") || &quit("cannot open new statoverride file: $!");
+ open(SO,">$admindir/statoverride-new") || &quit("cannot open new statoverride file: $!");
foreach $file (keys %owner) {
print SO "$owner{$file} $group{$file} $mode{$file} $file\n";
}