Procházet zdrojové kódy

Don't hardcode ENOENT in perlscripts
Add mips to archtable

Wichert Akkerman před 27 roky
rodič
revize
0c48a9d84e
5 změnil soubory, kde provedl 12 přidání a 7 odebrání
  1. 9 0
      ChangeLog
  2. 1 0
      archtable
  3. 0 1
      main/help.c
  4. 1 3
      scripts/dpkg-divert.pl
  5. 1 3
      scripts/update-alternatives.pl

+ 9 - 0
ChangeLog

@@ -1,3 +1,12 @@
+Thu Oct 14 03:37:52 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+  * Add mips to archtable
+  * Use Errno module to get ENOENT instead of hardcoding it
+
+Thu Oct 14 02:47:40 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+  * Fix C error we introduced in checkpath() earlier
+
 Wed Oct 13 20:41:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
 Wed Oct 13 20:41:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
 
 
   * Update oldfile-check in process_archive so we don't experience
   * Update oldfile-check in process_archive so we don't experience

+ 1 - 0
archtable

@@ -30,3 +30,4 @@ m68k	m68k	m68k
 arm	arm	arm
 arm	arm	arm
 ppc	powerpc	powerpc
 ppc	powerpc	powerpc
 powerpc	powerpc	powerpc
 powerpc	powerpc	powerpc
+mips	mips	mips

+ 0 - 1
main/help.c

@@ -87,7 +87,6 @@ void checkpath(void) {
     while (s) {
     while (s) {
       p= strchr(s,':');
       p= strchr(s,':');
       l= p ? p-s : strlen(s);
       l= p ? p-s : strlen(s);
-      if (l+strlen(*clp)+2>sizeof(buf)) continue;
       memcpy(buf,s,l);
       memcpy(buf,s,l);
       if (l) buf[l++]= '/';
       if (l) buf[l++]= '/';
       strcpy(buf+l,*clp);
       strcpy(buf+l,*clp);

+ 1 - 3
scripts/dpkg-divert.pl

@@ -1,8 +1,6 @@
 #!/usr/bin/perl --
 #!/usr/bin/perl --
 
 
-#use POSIX; &ENOENT;
-sub ENOENT { 2; }
-# Sorry about this, but POSIX.pm isn't necessarily available
+use Errno;
 
 
 $version= '1.0.11'; # This line modified by Makefile
 $version= '1.0.11'; # This line modified by Makefile
 sub usageversion {
 sub usageversion {

+ 1 - 3
scripts/update-alternatives.pl

@@ -1,8 +1,6 @@
 #!/usr/bin/perl --
 #!/usr/bin/perl --
 
 
-#use POSIX; &ENOENT;
-sub ENOENT { 2; }
-# Sorry about this, but POSIX.pm isn't necessarily available
+use Errno;
 
 
 $version= '0.93.80'; # This line modified by Makefile
 $version= '0.93.80'; # This line modified by Makefile
 sub usageversion {
 sub usageversion {