]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/patches/testing/t.c
ebl update
[bacula/bacula] / bacula / patches / testing / t.c
index ca9c2cdf5885f98f5a092871867a385a9033262a..f668680d6c39a0abce19d65920d44eb41181e59b 100644 (file)
@@ -30,6 +30,10 @@ int main()
    struct mtop mt_com;
 
    fd  = open("/dev/lto2", O_CREAT | O_RDWR, 0700);
+   if (fd < 0) {
+      perror("Can't open fd");
+      exit(1);
+   }
 
    /* rewind */
    mt_com.mt_count = 1;