From 2d04331dbadf3070802a804b16a35222e928e00e Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Wed, 22 Oct 2008 00:48:45 -0400 Subject: [PATCH] Implement the newly chosen error code on the host for the case of an invalid remctl command svn path=/trunk/packages/sipb-xen-remctl-auto/; revision=1164 --- debian/changelog | 8 ++++++++ files/usr/sbin/sipb-xen-remote | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5ef72a3..e98f615 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +sipb-xen-remctl-auto (1.5) unstable; urgency=low + + * Distinguish between Xen errors and invalid commands by returning a + completely outlandish error code that's not likely to conflict with + anything + + -- Evan Broder Wed, 22 Oct 2008 00:47:50 -0400 + sipb-xen-remctl-auto (1.4) unstable; urgency=low * Correctly extract the CDROM image from the remctl arguments diff --git a/files/usr/sbin/sipb-xen-remote b/files/usr/sbin/sipb-xen-remote index 3ec0c95..a6d1c02 100755 --- a/files/usr/sbin/sipb-xen-remote +++ b/files/usr/sbin/sipb-xen-remote @@ -28,13 +28,13 @@ case "$TYPE" in ;; *) echo "ERROR: invalid subcommand" - exit 1 + exit 34 ;; esac ;; *) echo "ERROR: invalid command" - exit 1 + exit 34 ;; esac -- 1.7.9.5