[Samba] adddriver: too many files - string overflow
Pavel Lisý
pali at tmapy.cz
Wed Apr 19 13:34:49 GMT 2006
Pavel Lisý píše v St 19. 04. 2006 v 12:31 +0200:
> Hello,
>
> I need adddriver to samba network printer, but I have problem with too
> many driver depend files in it. String with files is 1928 char long
>
> I am receiving this message:
>
> ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver
> "Windows NT x86" "Canon PIXMA iP4000":CN]
>
> this is my attempt:
> rpcclient -U 'admin%passwd' -c 'adddriver "Windows NT x86" "Canon PIXMA
> iP4000":CNMDR64.DLL:CNMCP64.DLL:CNMUI64.DLL:CNMMH64.HLP:NULL:NULL:CNMD564.DLL,CNMUR64.DLL,CNMSR64.DLL,CNMIN64.INI,CNMPI64.DLL,CNMSM64.EXE,CNMSS64.SMR,CNMSD64.EXE,CNMSQ64.EXE,CNMSH64.HLP,CNMSH64.CNT,CNMUB64.DLL,CNMOP64.DLL,CNMSB64.DLL,CNMMH64.CNT,CNB_2200.TBL,CNMP064.DAT,CNMP164.DAT,CNMP264.DAT,CNMFU64.DLL,CNMPV64.EXE,CNMPH64.HLP,CNMPH64.CNT,CNMW364.DLL,CNMUR640.405,CNMSR640.405,CNMMH640.405,CNMMT640.405,CNMSH640.405,CNMST640.405,CNMPH640.405,CNMPT640.405,CNMUR640.407,CNMSR640.407,CNMMH640.407,CNMMT640.407,CNMSH640.407,CNMST640.407,CNMPH640.407,CNMPT640.407,CNMUR640.406,CNMSR640.406,CNMMH640.406,CNMMT640.406,CNMSH640.406,CNMST640.406,CNMPH640.406,CNMPT640.406,CNMUR640.c0a,CNMSR640.c0a,CNMMH640.c0a,CNMMT640.c0a,CNMSH640.c0a,CNMST640.c0a,CNMPH640.c0a,CNMPT640.c0a,CNMUR640.40b,CNMSR640.40b,CNMMH640.40b,CNMMT640.40b,CNMSH640.40b,CNMST640.40b,CNMPH640.40b,CNMPT640.40b,CNMUR640.40c,CNMSR640.40c,CNMMH640.40c,CNMMT640.40c,CNMSH640.40c,CNMST640.40c,CNMPH640.40c,CNMPT640.40c,CNMUR640.408,CNMSR640.408,CNMMH640.408,CNMMT640.408,CNMSH640.408,CNMST640.408,CNMPH640.408,CNMPT640.408,CNMUR640.40e,CNMSR640.40e,CNMMH640.40e,CNMMT640.40e,CNMSH640.40e,CNMST640.40e,CNMPH640.40e,CNMPT640.40e,CNMUR640.410,CNMSR640.410,CNMMH640.410,CNMMT640.410,CNMSH640.410,CNMST640.410,CNMPH640.410,CNMPT640.410,CNMUR640.413,CNMSR640.413,CNMMH640.413,CNMMT640.413,CNMSH640.413,CNMST640.413,CNMPH640.413,CNMPT640.413,CNMUR640.414,CNMSR640.414,CNMMH640.414,CNMMT640.414,CNMSH640.414,CNMST640.414,CNMPH640.414,CNMPT640.414,CNMUR640.415,CNMSR640.415,CNMMH640.415,CNMMT640.415,CNMSH640.415,CNMST640.415,CNMPH640.415,CNMPT640.415,CNMUR640.816,CNMSR640.816,CNMMH640.816,CNMMT640.816,CNMSH640.816,CNMST640.816,CNMPH640.816,CNMPT640.816,CNMUR640.419,CNMSR640.419,CNMMH640.419,CNMMT640.419,CNMSH640.419,CNMST640.419,CNMPH640.419,CNMPT640.419,CNMUR640.41d,CNMSR640.41d,CNMMH640.41d,CNMMT640.41d,CNMSH640.41d,CNMST640.41d,CNMPH640.41d,CNMPT640.41d' printserver
>
> Can I solve it somehow? Is it possible divide command to two parts?
I have solved it by installation through Printer Wizard from windows.
BTW: it sets much less driver files for download then when I wanted
download it from Win PC with printer attached locally. It is
interesting, isn't?
Pavel
--
Pavel Lisý <pali at tmapy.cz>
T-MAPY spol. s r.o.
More information about the samba
mailing list