1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Doin't pstrcpy into fstring.

Jeremy.
(This used to be commit e619c50834)
This commit is contained in:
Jeremy Allison 2003-03-19 02:01:11 +00:00
parent 4e8d7b3e8e
commit 7e958f092a

View File

@ -229,13 +229,13 @@ static NTSTATUS share_sanity_checks(int snum, fstring dev)
/* you can only connect to the IPC$ service as an ipc device */
if (strequal(lp_fstype(snum), "IPC"))
pstrcpy(dev,"IPC");
fstrcpy(dev,"IPC");
if (dev[0] == '?' || !dev[0]) {
if (lp_print_ok(snum)) {
pstrcpy(dev,"LPT1:");
fstrcpy(dev,"LPT1:");
} else {
pstrcpy(dev,"A:");
fstrcpy(dev,"A:");
}
}
@ -248,7 +248,7 @@ static NTSTATUS share_sanity_checks(int snum, fstring dev)
/* Behave as a printer if we are supposed to */
if (lp_print_ok(snum) && (strcmp(dev, "A:") == 0)) {
pstrcpy(dev, "LPT1:");
fstrcpy(dev, "LPT1:");
}
return NT_STATUS_OK;