1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

Oops, this is the change to use an fstring for the incoming service buffer -

the commit to reply.c just matches a pstrcpy for the pstring.  (harmless, fixes
it for the automated test).

Andrew Bartlett
(This used to be commit ef9c7586ac152304cacaf2c16115adc2bccefc22)
This commit is contained in:
Andrew Bartlett 2003-01-12 11:31:03 +00:00
parent ebb60c0302
commit e009abb20a

View File

@ -155,7 +155,7 @@ int find_service(fstring service)
char *pszTemp;
DEBUG(3,("checking whether %s is a valid printer name...\n", service));
pszTemp = PRINTCAP;
pszTemp = lp_printcapname();
if ((pszTemp != NULL) && pcap_printername_ok(service, pszTemp))
{
DEBUG(3,("%s is a valid printer name\n", service));
@ -751,7 +751,7 @@ connection_struct *make_connection(const char *service_in, DATA_BLOB password,
{
uid_t euid;
user_struct *vuser = NULL;
pstring service;
fstring service;
int snum = -1;
/* This must ONLY BE CALLED AS ROOT. As it exits this function as root. */
@ -814,7 +814,7 @@ connection_struct *make_connection(const char *service_in, DATA_BLOB password,
dev, status);
}
pstrcpy(service, service_in);
fstrcpy(service, service_in);
strlower(service);