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:
parent
4e8d7b3e8e
commit
7e958f092a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user