projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revert chg-multi.sh.in and apply patch from svn for typos
[debian/amanda]
/
changer-src
/
chg-scsi.c
diff --git
a/changer-src/chg-scsi.c
b/changer-src/chg-scsi.c
index 83516eabbd16e7b18316c99dfb93d5cf9b74173a..685510bff5ddc09050fc087467f8460a8d6e7bbc 100644
(file)
--- a/
changer-src/chg-scsi.c
+++ b/
changer-src/chg-scsi.c
@@
-200,7
+200,7
@@
dump_changer_struct(
dbprintf (("\traw: %d\n",chg->emubarcode));
if (chg->debuglevel != NULL)
dbprintf(("debug level : %s\n", chg->debuglevel));
dbprintf (("\traw: %d\n",chg->emubarcode));
if (chg->debuglevel != NULL)
dbprintf(("debug level : %s\n", chg->debuglevel));
- dbprintf(("Tapes need sleep: %d seconds\n",chg->sleep));
+ dbprintf(("Tapes need sleep: %d seconds\n",
(int)
chg->sleep));
dbprintf(("Cleancycles : %d\n",chg->cleanmax));
dbprintf(("Changerdevice : %s\n",chg->device));
if (chg->labelfile != NULL)
dbprintf(("Cleancycles : %d\n",chg->cleanmax));
dbprintf(("Changerdevice : %s\n",chg->device));
if (chg->labelfile != NULL)
@@
-399,15
+399,17
@@
read_config(
fprintf(stderr,"drivenum %d is bad\n", drivenum);
drivenum = 0;
}
fprintf(stderr,"drivenum %d is bad\n", drivenum);
drivenum = 0;
}
- p = chg->conf[drivenum].changerident;
- while (*p != '\0')
- {
- if (*p == '_')
+ if (strcmp(chg->conf[drivenum].changerident,"generic_changer") != 0) {
+ p = chg->conf[drivenum].changerident;
+ while (*p != '\0')
{
{
- *p=' ';
+ if (*p == '_')
+ {
+ *p=' ';
+ }
+ p++;
}
}
- p++;
- }
+ }
break;
case TAPEIDENT:
chg->conf[drivenum].tapeident = stralloc(value);
break;
case TAPEIDENT:
chg->conf[drivenum].tapeident = stralloc(value);