1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source3/printing
Jeremy Allison 10ab7a3a78 r21672: The cannonical file access pattern should look like this :
srvstr_get_path(inbuf, name, smb_buf(inbuf) + 1, sizeof(name), 0, STR_TERMINATE, &status);
	if (!NT_STATUS_IS_OK(status)) {
		return ERROR_NT(status);
	}

	RESOLVE_DFSPATH(name, conn, inbuf, outbuf);

	status = unix_convert(conn, name, False, NULL, &sbuf);
	if (!NT_STATUS_IS_OK(status)) {
		return ERROR_NT(status);
	}

	status = check_name(conn, name);
	if (!NT_STATUS_IS_OK(status)) {
		return ERROR_NT(status);
	}

Make sure that every access pattern (including the
wildcard generated paths from unlink, rename, and copy)
do the same. Tidy things up a bit....

Jeremy.
(This used to be commit b8327b21dd)
2007-10-10 12:18:23 -05:00
..
load.c r4539: patch from Rob -- adding real printcap name cache function to speed up printcap reloads 2007-10-10 10:53:46 -05:00
lpq_parse.c r16243: Fix Klocwork bugs #581 and #706, ensure we check 2007-10-10 11:17:27 -05:00
notify.c r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END() 2007-10-10 11:51:59 -05:00
nt_printing.c r21672: The cannonical file access pattern should look like this : 2007-10-10 12:18:23 -05:00
pcap.c r10371: Adding iPrint printing backend written by Joel J. Smith @ Novell. 2007-10-10 11:03:41 -05:00
print_aix.c r4539: patch from Rob -- adding real printcap name cache function to speed up printcap reloads 2007-10-10 10:53:46 -05:00
print_cups.c r20245: merge 20244 from samba_3_0_24 2007-10-10 12:16:36 -05:00
print_generic.c r20124: clean up nested extern declaration warnings 2007-10-10 12:16:26 -05:00
print_iprint.c r20131: get rid of a few no previous prototype warnings 2007-10-10 12:16:26 -05:00
print_svid.c r11855: patch from Aruna Prabakar for checking that the spooler si running on HP-UX 2007-10-10 11:05:30 -05:00
print_test.c r20269: merge -r20264:20267 from SAMBA_3_0_24 2007-10-10 12:16:38 -05:00
printfsp.c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need 2007-10-10 11:19:14 -05:00
printing_db.c r16392: Klockwork #1168. Protect against null deref. 2007-10-10 11:18:51 -05:00
printing.c r21446: Karolins "printjob username" 2007-10-10 12:18:04 -05:00