diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-01 05:42:39 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-01 05:42:39 +0000 |
commit | 5fb473fc758b5fbc1145c00dc9b95567107afd5c (patch) | |
tree | 47a7b3b7d2dfe92ffa275e3d68f37a7ca5f9fcf3 | |
parent | bfb9c3ea86bbd4bef6ab96906fa5eb3fd7ef5c4e (diff) | |
download | samba-5fb473fc758b5fbc1145c00dc9b95567107afd5c.tar.gz samba-5fb473fc758b5fbc1145c00dc9b95567107afd5c.tar.bz2 samba-5fb473fc758b5fbc1145c00dc9b95567107afd5c.zip |
handle tabs in printcap files
this is needed for lprng
(This used to be commit c40e0a5d3bfa11cb3699bdba1ded91515cabaf5d)
-rw-r--r-- | source3/printing/pcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index 62010706bb..fb2409fd38 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -385,7 +385,7 @@ void pcap_printer_fn(void (*fn)(char *, char *)) BOOL has_punctuation; if ((q = strchr(p,'|'))) *q++ = 0; - has_punctuation = (strchr(p,' ') || strchr(p,'(') || strchr(p,')')); + has_punctuation = (strchr(p,' ') || strchr(p,'\t') || strchr(p,'(') || strchr(p,')')); if (strlen(p)>strlen(comment) && has_punctuation) { @@ -411,7 +411,7 @@ void pcap_printer_fn(void (*fn)(char *, char *)) comment[60] = 0; name[MAXPRINTERLEN] = 0; - if (*name) + if (*name) fn(name,comment); } fclose(pfile); |