Package: afbackup
Version: 3.3.8.1beta2-3
Severity: minor
Tags: patch

Hi

The small one below actually was part of 212637 but somehow was
forgotten, which leads to a misleading message being sent when
variable-append mode is enabled.

HTH, 2ri


*** /home/twoflower/arthur/tmp/00_afb-server-messages
#! /bin/sh -e
## 00_afb-server-messages by Arthur Korn <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
##
## DP: don`t tell user about cartready if autoprobing is on.

patch -p0 <<"EOP"
--- server.c~   Tue Nov  4 13:19:38 2003
+++ server.c    Tue Nov  4 13:27:15 2003
@@ -6024,11 +6024,18 @@
          else{
            fprintf(pp, T_("for reading\n"));
          }
-         fprintf(pp, T_("Then enter the command:\n\n cartready\n"));
-         fprintf(pp, T_("\non host %s,\n"), unam.nodename);
-         fprintf(pp, T_("\nor on any client use the afbackup command like 
this:\n"));
-         fprintf(pp, T_("afbackup -h %s [ -p <port-number> ] -M 
CartridgeReady\n"),
-                       unam.nodename);
+
+         if(devprobe_interval == 0 || devprobe_interval > 350) {
+             /* [EMAIL PROTECTED]: if autoprobing is on this only confuses the 
user,
+              * it might be helpful if the interval is really long though.
+              */
+             fprintf(pp, T_("Then enter the command:\n\n cartready\n"));
+             fprintf(pp, T_("\non host %s,\n"), unam.nodename);
+             fprintf(pp, T_("\nor on any client use the afbackup command like 
this:\n"));
+             fprintf(pp, T_("afbackup -h %s [ -p <port-number> ] -M 
CartridgeReady\n"),
+                           unam.nodename);
+         }
+         
          fprintf(pp, T_("\nBest regards from your backup service.\n"));
          pclose(pp);
 

EOP

*** /home/twoflower/arthur/tmp/02_afb-server-message
--- afbackup-3.3.7pl6.orig/server.c
+++ afbackup-3.3.7pl6/server.c
@@ -5952,6 +5952,10 @@
            Uns32Range  *empty_cart_ranges, *space_cart_ranges, 
*ovwr_cart_ranges;
            Uns32Range  *readonly_tapes, *nowrite_tapes;

+           if(var_append){
+             fprintf(pp, T_(" or one listed below\n"));
+           }
+
            readonly_tapes = get_readonly_tapes();
            ro_str = str_Uns32Ranges(readonly_tapes, 0);




-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.11-1-686-smp
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)

Versions of packages afbackup depends on:
ii  afbackup-common           3.3.8.1beta2-3 Client-Server Backup System (commo
ii  debianutils               2.14.1         Miscellaneous utilities specific t
ii  libc6                     2.3.2.ds1-22   GNU C Library: Shared libraries an
ii  libssl0.9.7               0.9.7g-1       SSL shared libraries
ii  netbase                   4.21           Basic TCP/IP networking system
ii  tcsh [c-shell]            6.14.00-1      TENEX C Shell, an enhanced version
ii  zlib1g                    1:1.2.2-9      compression library - runtime

afbackup recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to