summaryrefslogtreecommitdiff
path: root/source3/printing/print_svid.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-12-07 19:26:04 +0000
committerJeremy Allison <jra@samba.org>2000-12-07 19:26:04 +0000
commitcf5b71994d6cdb2f81c390579f4a0e676926c6b9 (patch)
treeee7f1164bf48be2c95651e21bb88b41ec84859f6 /source3/printing/print_svid.c
parent0d658c35eb9d8ec400ad0302ee11d489bb59bd77 (diff)
downloadsamba-cf5b71994d6cdb2f81c390579f4a0e676926c6b9.tar.gz
samba-cf5b71994d6cdb2f81c390579f4a0e676926c6b9.tar.bz2
samba-cf5b71994d6cdb2f81c390579f4a0e676926c6b9.zip
file_lines_load/file_lines_pload can now optionally convert unix_to_dos()
on read. Jeremy. (This used to be commit 76b8dd376d13eb4469417be217c966d54d333367)
Diffstat (limited to 'source3/printing/print_svid.c')
-rw-r--r--source3/printing/print_svid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/print_svid.c b/source3/printing/print_svid.c
index 301f388671..58a1d03f49 100644
--- a/source3/printing/print_svid.c
+++ b/source3/printing/print_svid.c
@@ -50,7 +50,7 @@ static void populate_printers(void)
char **lines;
int i;
- lines = file_lines_pload("/usr/bin/lpstat -v", NULL);
+ lines = file_lines_pload("/usr/bin/lpstat -v", NULL, False);
if (!lines) return;
for (i=0;lines[i];i++) {
@@ -107,7 +107,7 @@ void sysv_printer_fn(void (*fn)(char *, char *))
if (printers == NULL)
populate_printers();
for (tmp = printers; tmp != NULL; tmp = tmp->next)
- (fn)(tmp->name, "");
+ (fn)(unix_to_dos(tmp->name,False), "");
}