summaryrefslogtreecommitdiff
blob: 77e0d72761b1a803211277328a46e86963f6c6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff -Naur cups-1.1.23.orig/systemv/cupsaddsmb.c cups-1.1.23/systemv/cupsaddsmb.c
--- cups-1.1.23.orig/systemv/cupsaddsmb.c	2005-01-03 14:29:59.000000000 -0500
+++ cups-1.1.23/systemv/cupsaddsmb.c	2005-11-02 12:50:27.000000000 -0500
@@ -625,7 +625,7 @@
     * See if we also have the CUPS driver files; if so, use them!
     */
 
-    snprintf(file, sizeof(file), "%s/drivers/cupsdrv6.dll", datadir);
+    snprintf(file, sizeof(file), "%s/drivers/cupsps6.dll", datadir);
     if (!access(file, 0))
     {
      /*
@@ -633,9 +633,10 @@
       */
 
       snprintf(subcmd, sizeof(subcmd),
-               "put %s/drivers/cupsdrv6.dll W32X86/cupsdrv6.dll;"
+               "put %s/drivers/cups6.ini W32X86/cups6.ini;"
+               "put %s/drivers/cupsps6.dll W32X86/cupsps6.dll;"
 	       "put %s/drivers/cupsui6.dll W32X86/cupsui6.dll",
-	       datadir, datadir);
+	       datadir, datadir, datadir);
 
       if ((status = do_samba_command(command, subcmd)) != 0)
       {
@@ -652,8 +653,9 @@
       snprintf(subcmd, sizeof(subcmd),
                "adddriver \"Windows NT x86\" \"%s:"
 	       "pscript5.dll:%s.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:"
-	       "cupsdrv6.dll,cupsui6.dll,pscript.ntf\"",
-	       dest, dest);
+	       "pscript5.dll,%s.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,"
+	       "cups6.ini,cupsps6.dll,cupsui6.dll\"",
+	       dest, dest, dest);
     }
     else
     {
@@ -665,8 +667,8 @@
       snprintf(subcmd, sizeof(subcmd),
                "adddriver \"Windows NT x86\" \"%s:"
 	       "pscript5.dll:%s.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:"
-	       "pscript.ntf\"",
-	       dest, dest);
+	       "pscript5.dll,%s.ppd,ps5ui.dll,pscript.hlp,pscript.ntf\"",
+	       dest, dest, dest);
     }
 
     snprintf(command, sizeof(command), "rpcclient %s", SAMBAServer);