]> git.sur5r.net Git - bacula/bacula/commitdiff
small fix : use get_yesno instead of get_cmd + ua->cmd[0] != 'y'
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 3 May 2006 19:57:24 +0000 (19:57 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 3 May 2006 19:57:24 +0000 (19:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2997 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_label.c

index e629a6f124aa80fb9e40de09d7a9c8f100304fd2..e15cff6fd3c5250fc3a5c11c331fc0e255ac2fb4 100644 (file)
@@ -499,8 +499,8 @@ static void label_from_barcodes(UAContext *ua, int drive)
       }
       bsendmsg(ua, "%4d  %s\n", vl->Slot, vl->VolName);
    }
-   if (!get_cmd(ua, _("Do you want to continue? (y/n): ")) ||
-       (ua->cmd[0] != 'y' && ua->cmd[0] != 'Y')) {
+   if (!get_yesno(ua, _("Do you want to continue? (yes/no): ")) ||
+       (ua->pint32_val == 0)) {
       goto bail_out;
    }
    /* Select a pool */