utils/update-rc.d: Accept single-number values, since they are always in the [0,99] range
+Thu Dec 16 15:20:11 CET 1999 Wichert Akkerman <wakkerma@debian.org>
+
+ * utils/start-stop-daemon.c: Fix OS-detection for sunos
+ * utils/update-rc.d: Accept single-number values, since they are
+ always in the [0,99] range
+
Wed Dec 15 16:08:47 CET 1999 Wichert Akkerman <wakkerma@debian.org>
* autogen.sh: copy gettextm4, lcmessage.m4 and progtest.m4 to automake/
Closes: Bug#52580,#52185
* Fix dselect program description, Closes: Bug#52328
* Fix architecture-detection in dpkg-gencontrol, Closes: Bug#52616
+ * Accept single-number values in update-rc.d, Closes: Bug#46810
-- Wichert Akkerman <wakkerma@debian.org> UNRELEASED
$start = $stop = $ARGV[1] if ($#ARGV >= 1);
$stop = $ARGV[2] if ($#ARGV >= 2);
&usage ("codenumber must be a number between 0 and 99")
- if ($start !~ /^\d\d$/ || $stop !~ /^\d\d$/);
+ if ($start !~ /^\d\d?$/ || $stop !~ /^\d\d?$/);
$start = sprintf("%02d", $start);
$stop = sprintf("%02d", $stop);
&usage("expected start|stop");
}
- if ($ARGV[1] !~ /^\d\d$/) {
+ if ($ARGV[1] !~ /^\d\d?$/) {
&usage("expected NN after $ARGV[0]");
}
$NN = sprintf("%02d", $ARGV[1]);
#include "config.h"
-#ifdef linux
+#if defined(linux)
#define OSLinux
-#endif
-
-#ifdef sunos
-#define OSsunos
-#endif
-
-#ifdef __GNU__
+#elif defined(__GNU__)
#define OSHURD
+#elif defined(Sparc)
+#define OSsunos
+#else
+#error Unknown architecture - cannot build start-stop-daemon
#endif
#ifdef HAVE_HURH_H