|
|
@@ -353,7 +353,7 @@ void process_archive(const char *filename) {
|
|
|
break;
|
|
|
case dep_predepends:
|
|
|
if (!depisok(dsearch, &depprobwhy, NULL, true)) {
|
|
|
- varbuf_add_char(&depprobwhy, '\0');
|
|
|
+ varbuf_end_str(&depprobwhy);
|
|
|
fprintf(stderr, _("dpkg: regarding %s containing %s, pre-dependency problem:\n%s"),
|
|
|
pfilename, pkg->name, depprobwhy.buf);
|
|
|
if (!force_depends(dsearch->list))
|
|
|
@@ -732,7 +732,7 @@ void process_archive(const char *filename) {
|
|
|
|
|
|
varbuf_trunc(&fnamevb, fnameidlu);
|
|
|
varbuf_add_str(&fnamevb, usenode->name);
|
|
|
- varbuf_add_char(&fnamevb, '\0');
|
|
|
+ varbuf_end_str(&fnamevb);
|
|
|
|
|
|
if (!stat(namenode->name,&stab) && S_ISDIR(stab.st_mode)) {
|
|
|
debug(dbg_eachfiledetail, "process_archive: %s is a directory",
|
|
|
@@ -791,7 +791,7 @@ void process_archive(const char *filename) {
|
|
|
varbuf_add_str(&cfilename, instdir);
|
|
|
varbuf_add_char(&cfilename, '/');
|
|
|
varbuf_add_str(&cfilename, cfile->namenode->name);
|
|
|
- varbuf_add_char(&cfilename, '\0');
|
|
|
+ varbuf_end_str(&cfilename);
|
|
|
|
|
|
if (lstat(cfilename.buf, &tmp_stat) == 0) {
|
|
|
cfile->namenode->filestat = nfmalloc(sizeof(struct stat));
|
|
|
@@ -877,7 +877,7 @@ void process_archive(const char *filename) {
|
|
|
varbuf_reset(&infofnvb);
|
|
|
varbuf_add_str(&infofnvb, pkgadmindir());
|
|
|
infodirlen= infofnvb.used;
|
|
|
- varbuf_add_char(&infofnvb, '\0');
|
|
|
+ varbuf_end_str(&infofnvb);
|
|
|
dsd= opendir(infofnvb.buf);
|
|
|
if (!dsd) ohshite(_("cannot read info directory"));
|
|
|
push_cleanup(cu_closedir, ~0, NULL, 0, 1, (void *)dsd);
|
|
|
@@ -906,7 +906,7 @@ void process_archive(const char *filename) {
|
|
|
de->d_name);
|
|
|
varbuf_trunc(&infofnvb, infodirlen);
|
|
|
varbuf_add_str(&infofnvb, de->d_name);
|
|
|
- varbuf_add_char(&infofnvb, '\0');
|
|
|
+ varbuf_end_str(&infofnvb);
|
|
|
strcpy(cidirrest,p);
|
|
|
|
|
|
/* We keep files to rename in a list as doing the rename immediately
|
|
|
@@ -1108,7 +1108,7 @@ void process_archive(const char *filename) {
|
|
|
pdep->up->type != dep_recommends) continue;
|
|
|
if (depisok(pdep->up, &depprobwhy, NULL, false))
|
|
|
continue;
|
|
|
- varbuf_add_char(&depprobwhy, '\0');
|
|
|
+ varbuf_end_str(&depprobwhy);
|
|
|
debug(dbg_veryverbose,"process_archive cannot disappear: %s",depprobwhy.buf);
|
|
|
break;
|
|
|
}
|
|
|
@@ -1126,7 +1126,7 @@ void process_archive(const char *filename) {
|
|
|
continue;
|
|
|
if (depisok(pdep->up, &depprobwhy, NULL, false))
|
|
|
continue;
|
|
|
- varbuf_add_char(&depprobwhy, '\0');
|
|
|
+ varbuf_end_str(&depprobwhy);
|
|
|
debug(dbg_veryverbose,"process_archive cannot disappear (provides %s): %s",
|
|
|
providecheck->list->ed->name, depprobwhy.buf);
|
|
|
goto break_from_both_loops_at_once;
|
|
|
@@ -1156,7 +1156,7 @@ void process_archive(const char *filename) {
|
|
|
varbuf_reset(&fnvb);
|
|
|
varbuf_add_str(&fnvb, pkgadmindir());
|
|
|
infodirbaseused= fnvb.used;
|
|
|
- varbuf_add_char(&fnvb, '\0');
|
|
|
+ varbuf_end_str(&fnvb);
|
|
|
dsd= opendir(fnvb.buf); if (!dsd) ohshite(_("cannot read info directory"));
|
|
|
push_cleanup(cu_closedir, ~0, NULL, 0, 1, (void *)dsd);
|
|
|
|
|
|
@@ -1171,7 +1171,7 @@ void process_archive(const char *filename) {
|
|
|
debug(dbg_stupidlyverbose, "process_archive info this pkg");
|
|
|
varbuf_trunc(&fnvb, infodirbaseused);
|
|
|
varbuf_add_str(&fnvb, de->d_name);
|
|
|
- varbuf_add_char(&fnvb, '\0');
|
|
|
+ varbuf_end_str(&fnvb);
|
|
|
if (unlink(fnvb.buf))
|
|
|
ohshite(_("unable to delete disappearing control info file `%.250s'"),fnvb.buf);
|
|
|
debug(dbg_scripts, "process_archive info unlinked %s",fnvb.buf);
|
|
|
@@ -1267,7 +1267,7 @@ void process_archive(const char *filename) {
|
|
|
varbuf_trunc(&fnametmpvb, fnameidlu);
|
|
|
varbuf_add_str(&fnametmpvb, namenodetouse(cfile->namenode, pkg)->name);
|
|
|
varbuf_add_str(&fnametmpvb, DPKGTEMPEXT);
|
|
|
- varbuf_add_char(&fnametmpvb, '\0');
|
|
|
+ varbuf_end_str(&fnametmpvb);
|
|
|
ensure_pathname_nonexisting(fnametmpvb.buf);
|
|
|
}
|
|
|
|