summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-01 05:42:39 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-01 05:42:39 +0000
commit5fb473fc758b5fbc1145c00dc9b95567107afd5c (patch)
tree47a7b3b7d2dfe92ffa275e3d68f37a7ca5f9fcf3 /source3/printing
parentbfb9c3ea86bbd4bef6ab96906fa5eb3fd7ef5c4e (diff)
downloadsamba-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)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/pcap.c4
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);