~ubuntu-branches/ubuntu/lucid/lpr/lucid

« back to all changes in this revision

Viewing changes to lpr/lpr.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Majer
  • Date: 2008-05-19 21:11:19 UTC
  • Revision ID: james.westby@ubuntu.com-20080519211119-mkch0dpnzwnfr7vz
Tags: 1:2008.05.17
* Change package priority from standard to optional since it was
  already done in the override file
* Add upstream revision file
* Upgrade standards to 3.7.3
* Overwrite logcheck-database provided logcheck file with our own
  version (closes: #418393)
* Added upstream patches
  + lpd/printjob.c [rev. 1.41] - rfc 3834 support: "Auto-Submitted:
  auto-generated" on lots of things; from Tamas TEVESZ
  + Synched to upstream lpr as of 2008-05-17
* Merged logcheck-database rule with the ones provided by lpr.
* Remove old changelog entries for versions before OpenBSD's version
  was used as an upstream.
* Added Vcs- info to control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $OpenBSD: lpr.c,v 1.39 2006/10/11 20:56:59 deraadt Exp $ */
 
1
/*      $OpenBSD: lpr.c,v 1.41 2007/04/07 21:57:27 stevesk Exp $ */
2
2
/*      $NetBSD: lpr.c,v 1.19 2000/10/11 20:23:52 is Exp $      */
3
3
 
4
4
/*
46
46
#if 0
47
47
static const char sccsid[] = "@(#)lpr.c 8.4 (Berkeley) 4/28/95";
48
48
#else
49
 
static const char rcsid[] = "$OpenBSD: lpr.c,v 1.39 2006/10/11 20:56:59 deraadt Exp $";
 
49
static const char rcsid[] = "$OpenBSD: lpr.c,v 1.41 2007/04/07 21:57:27 stevesk Exp $";
50
50
#endif
51
51
#endif /* not lint */
52
52
 
429
429
                }
430
430
        }
431
431
        (void)close(fd);
432
 
        if (nc==0 && nr==0) 
 
432
        if (nc == 0 && nr == 0) 
433
433
                warnx("%s: empty input file", f ? n : "stdin");
434
434
        else
435
435
                nact++;
649
649
        cgetstr(bp, "rg", &RG);
650
650
        if (cgetnum(bp, "mx", &MX) < 0)
651
651
                MX = DEFMX;
652
 
        if (cgetnum(bp,"mc", &MC) < 0)
 
652
        if (cgetnum(bp, "mc", &MC) < 0)
653
653
                MC = DEFMAXCOPIES;
654
654
        if (cgetnum(bp, "du", &DU) < 0)
655
655
                DU = DEFNUID;
718
718
        extern char *__progname;
719
719
 
720
720
        fprintf(stderr,
721
 
            "usage: %s [-cdfghlmnpqrstv] [-Pprinter] [-#num] [-C class] "
722
 
            "[-J job] [-T title]\n           [-U user] [-i [numcols]] "
723
 
            "[-1234 font] [-wnum] [name ...]\n", __progname);
 
721
            "usage: %s [-cdfghlmnpqrstv] [-#num] [-1234 font] "
 
722
            "[-C class] [-i [numcols]]\n"
 
723
            "\t[-J job] [-Pprinter] [-T title] [-U user] "
 
724
            "[-wnum] [name ...]\n", __progname);
724
725
        exit(1);
725
726
}