diff options
author | Marius Strobl <marius@FreeBSD.org> | 2010-09-15 17:35:24 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2010-09-15 17:35:24 +0000 |
commit | 3db38e483c3e83fcf14b8ea5e45be988ac76f989 (patch) | |
tree | 6fcee07cb608e7d96a4fa2a6d3eeb7c1f6d4be1c /sysutils/cdrtools/files/patch-readcd::readcd.c | |
parent | Fix build when CC definition contains spaces. (diff) |
Update cdrtools to 3.00. For changes since 2.01 see:
ftp://ftp.berlios.de/pub/cdrecord/AN-3.00
Note that this breaks and obsoletes sysutils/cdrtools-cjk as mkisofs now
employs iconv for character conversion. Consequently USE_CDRTOOLS=cjk and
USE_CDRTOOLS together with WITH_CJK are now defunct and bsd.port.mk is
expected to be updated by portmgr@ accordingly (PR 150362).
PR: 127608, 149644
Approved by: netchild
Diffstat (limited to 'sysutils/cdrtools/files/patch-readcd::readcd.c')
-rw-r--r-- | sysutils/cdrtools/files/patch-readcd::readcd.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/sysutils/cdrtools/files/patch-readcd::readcd.c b/sysutils/cdrtools/files/patch-readcd::readcd.c deleted file mode 100644 index 4d2f2502011f..000000000000 --- a/sysutils/cdrtools/files/patch-readcd::readcd.c +++ /dev/null @@ -1,63 +0,0 @@ ---- readcd/readcd.c.original Sun Jan 15 17:14:03 2006 -+++ readcd/readcd.c Sun Jan 15 17:24:47 2006 -@@ -253,9 +256,9 @@ - int fcount; - int cac; - char * const *cav; -- int scsibus = 0; -- int target = 0; -- int lun = 0; -+ int scsibus = -1; -+ int target = -1; -+ int lun = -1; - int silent = 0; - int verbose = 0; - int kdebug = 0; -@@ -335,20 +338,22 @@ - usage(EX_BAD); - /* NOTREACHED */ - } -- } else { -- scsibus = 0; - } - cac--; - cav++; - } - /*error("dev: '%s'\n", dev);*/ -- - if (!scanbus) - cdr_defaults(&dev, NULL, NULL, NULL); - if (debug) { - printf("dev: '%s'\n", dev); - } -- if (dev) { -+ if (!scanbus && dev == NULL && -+ scsibus == -1 && (target == -1 || lun == -1)) { -+ errmsgno(EX_BAD, "No SCSI device specified.\n"); -+ usage(EX_BAD); -+ } -+ if (dev || scanbus) { - char errstr[80]; - - /* -@@ -357,8 +362,9 @@ - * remote routines that are located inside libscg. - */ - scg_remote(); -- if ((strncmp(dev, "HELP", 4) == 0) || -- (strncmp(dev, "help", 4) == 0)) { -+ if (dev != NULL && -+ ((strncmp(dev, "HELP", 4) == 0) || -+ (strncmp(dev, "help", 4) == 0))) { - scg_help(stderr); - exit(0); - } -@@ -1629,7 +1656,7 @@ - end = scgp->cap->c_baddr + 1; - scgp->silent--; - -- if (end <= 0 || isrange || (askrange && scg_yes("Ignore disk size? "))) -+ if ((end <= 0 && isrange) || (askrange && scg_yes("Ignore disk size? "))) - end = 10000000; /* Hack to read empty (e.g. blank=fast) disks */ - - if (parmp) { |