From 0c48a9d84ee5b33bb2204b2ef36b6d36e58e4537 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Thu, 14 Oct 1999 01:39:49 +0000 Subject: [PATCH] Don't hardcode ENOENT in perlscripts Add mips to archtable --- ChangeLog | 9 +++++++++ archtable | 1 + main/help.c | 1 - scripts/dpkg-divert.pl | 4 +--- scripts/update-alternatives.pl | 4 +--- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8c4d919d..8fd51ab2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Thu Oct 14 03:37:52 CEST 1999 Wichert Akkerman + + * Add mips to archtable + * Use Errno module to get ENOENT instead of hardcoding it + +Thu Oct 14 02:47:40 CEST 1999 Wichert Akkerman + + * Fix C error we introduced in checkpath() earlier + Wed Oct 13 20:41:16 CEST 1999 Wichert Akkerman * Update oldfile-check in process_archive so we don't experience diff --git a/archtable b/archtable index eee78fa7..40795822 100644 --- a/archtable +++ b/archtable @@ -30,3 +30,4 @@ m68k m68k m68k arm arm arm ppc powerpc powerpc powerpc powerpc powerpc +mips mips mips diff --git a/main/help.c b/main/help.c index 98620a2a..762d77b4 100644 --- a/main/help.c +++ b/main/help.c @@ -87,7 +87,6 @@ void checkpath(void) { while (s) { p= strchr(s,':'); l= p ? p-s : strlen(s); - if (l+strlen(*clp)+2>sizeof(buf)) continue; memcpy(buf,s,l); if (l) buf[l++]= '/'; strcpy(buf+l,*clp); diff --git a/scripts/dpkg-divert.pl b/scripts/dpkg-divert.pl index a6bb5fcd..7dd53b3b 100755 --- a/scripts/dpkg-divert.pl +++ b/scripts/dpkg-divert.pl @@ -1,8 +1,6 @@ #!/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 sub usageversion { diff --git a/scripts/update-alternatives.pl b/scripts/update-alternatives.pl index c0a047c0..e312f5be 100755 --- a/scripts/update-alternatives.pl +++ b/scripts/update-alternatives.pl @@ -1,8 +1,6 @@ #!/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 sub usageversion { -- 2.39.5