Merge lp:~csurbhi/ubuntu/maverick/samba/samba-fix.276472 into lp:ubuntu/maverick/samba

Proposed by Surbhi Palande
Status: Merged
Merge reported by: Steve Langasek
Merged at revision: not available
Proposed branch: lp:~csurbhi/ubuntu/maverick/samba/samba-fix.276472
Merge into: lp:ubuntu/maverick/samba
Diff against target: 67 lines (+28/-1)
5 files modified
.pc/applied-patches (+1/-0)
debian/changelog (+8/-0)
debian/patches/error-trans.fix-276472 (+15/-0)
debian/patches/series (+1/-0)
source3/lib/errmap_unix.c (+3/-1)
To merge this branch: bzr merge lp:~csurbhi/ubuntu/maverick/samba/samba-fix.276472
Reviewer Review Type Date Requested Status
Steve Langasek Needs Information
Ubuntu branches Pending
Review via email: mp+32753@code.launchpad.net

Description of the change

Adds the translation of Unix Error code -ENOTSUP to NT Error Code NT_STATUS_NOT_SUPPORTED. The absence of this translation wrongly sends back to the client a STATUS_DENIED message.

I have lightly tested this fix on my local machine and also asked users to test it.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

The change makes sense, but should be reviewed by protocol experts before we commit to it. Please submit this patch to <email address hidden> for review; once it's been submitted upstream, I'm happy to apply it to the package.

review: Needs Information

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.pc/applied-patches'
2--- .pc/applied-patches 2010-07-11 19:01:01 +0000
3+++ .pc/applied-patches 2010-08-16 12:31:10 +0000
4@@ -10,3 +10,4 @@
5 smbtar-bashism.patch
6 no-unnecessary-cups.patch
7 autoconf.patch
8+error-trans.fix-276472
9
10=== modified file 'debian/changelog'
11--- debian/changelog 2010-07-15 13:26:21 +0000
12+++ debian/changelog 2010-08-16 12:31:10 +0000
13@@ -1,3 +1,11 @@
14+samba (2:3.5.4~dfsg-1ubuntu3) maverick; urgency=low
15+
16+ * Add the translation of Unix Error code -ENOTSUP to NT Error Code
17+ NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
18+ (LP: #276472)
19+
20+ -- Surbhi Palande <surbhi.palande@canonical.com> Mon, 16 Aug 2010 15:09:30 +0300
21+
22 samba (2:3.5.4~dfsg-1ubuntu2) maverick; urgency=low
23
24 * Resync with debian:
25
26=== added file 'debian/patches/error-trans.fix-276472'
27--- debian/patches/error-trans.fix-276472 1970-01-01 00:00:00 +0000
28+++ debian/patches/error-trans.fix-276472 2010-08-16 12:31:10 +0000
29@@ -0,0 +1,15 @@
30+Index: b/source3/lib/errmap_unix.c
31+===================================================================
32+--- a/source3/lib/errmap_unix.c
33++++ b/source3/lib/errmap_unix.c
34+@@ -105,7 +105,9 @@
35+ #ifdef ECANCELED
36+ { ECANCELED, ERRDOS, ERRbadfid, NT_STATUS_CANCELLED},
37+ #endif
38+-
39++#ifdef ENOTSUP
40++ { ENOTSUP, ERRSRV, ERRnosupport, NT_STATUS_NOT_SUPPORTED},
41++#endif
42+ { 0, 0, 0, NT_STATUS_OK }
43+ };
44+
45
46=== modified file 'debian/patches/series'
47--- debian/patches/series 2010-07-11 19:01:01 +0000
48+++ debian/patches/series 2010-08-16 12:31:10 +0000
49@@ -10,3 +10,4 @@
50 smbtar-bashism.patch
51 no-unnecessary-cups.patch
52 autoconf.patch
53+error-trans.fix-276472
54
55=== modified file 'source3/lib/errmap_unix.c'
56--- source3/lib/errmap_unix.c 2010-07-11 19:01:01 +0000
57+++ source3/lib/errmap_unix.c 2010-08-16 12:31:10 +0000
58@@ -105,7 +105,9 @@
59 #ifdef ECANCELED
60 { ECANCELED, ERRDOS, ERRbadfid, NT_STATUS_CANCELLED},
61 #endif
62-
63+#ifdef ENOTSUP
64+ { ENOTSUP, ERRSRV, ERRnosupport, NT_STATUS_NOT_SUPPORTED},
65+#endif
66 { 0, 0, 0, NT_STATUS_OK }
67 };
68

Subscribers

People subscribed via source and target branches

to all changes: