diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-12 11:31:03 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-12 11:31:03 +0000 |
commit | e009abb20a60a59f5923915b7c9e46e5244337de (patch) | |
tree | 126365712db0f0650bc23cd018554db5a65468f9 /source3 | |
parent | ebb60c0302482d347bed123795864c178defb08e (diff) | |
download | samba-e009abb20a60a59f5923915b7c9e46e5244337de.tar.gz samba-e009abb20a60a59f5923915b7c9e46e5244337de.tar.bz2 samba-e009abb20a60a59f5923915b7c9e46e5244337de.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/service.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index dd427c2ae8..2a41a6db1c 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -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); |