~ubuntu-branches/debian/experimental/apt-cacher-ng/experimental

« back to all changes in this revision

Viewing changes to source/conserver.cc

  • Committer: Package Import Robot
  • Author(s): Eduard Bloch
  • Date: 2012-08-04 20:50:16 UTC
  • mfrom: (1.6.1) (29.1.28 sid)
  • Revision ID: package-import@ubuntu.com-20120804205016-hwzo9wwcqjpf0zid
Tags: 0.7.7-1
* New upstream releasee
  + pass-through mode for allowed hosts (LP: #647212)
  + possible fixes of file descriptor objects expiration (closes: #677983)

Show diffs side-by-side

added added

removed removed

Lines of Context:
413
413
                                                continue;
414
414
                                        }
415
415
 
416
 
#ifdef HAVE_LIBWRAP
417
416
                                        if (acfg::usewrap)
418
417
                                        {
419
 
                                                // libwrap code is evil non-reentrant stuff, call it from here only
 
418
#ifdef HAVE_LIBWRAP
 
419
                                                // libwrap is non-reentrant stuff, call it from here only
420
420
                                                request_info req;
421
421
                                                request_init(&req, RQ_DAEMON, "apt-cacher-ng", RQ_FILE, fd, 0);
422
422
                                                fromhost(&req);
426
426
                                                        forceShutdownClose(fd);
427
427
                                                        continue;
428
428
                                                }
 
429
#else
 
430
                                                aclog::err("WARNING: attempted to use libwrap which was not enabled at build time");
 
431
#endif
429
432
                                        }
430
 
#endif
431
433
 
432
434
                                        SetupConAndGo(fd, hbuf);
433
435
                                }