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
=== modified file '.pc/applied-patches'
--- .pc/applied-patches 2010-07-11 19:01:01 +0000
+++ .pc/applied-patches 2010-08-16 12:31:10 +0000
@@ -10,3 +10,4 @@
10smbtar-bashism.patch10smbtar-bashism.patch
11no-unnecessary-cups.patch11no-unnecessary-cups.patch
12autoconf.patch12autoconf.patch
13error-trans.fix-276472
1314
=== modified file 'debian/changelog'
--- debian/changelog 2010-07-15 13:26:21 +0000
+++ debian/changelog 2010-08-16 12:31:10 +0000
@@ -1,3 +1,11 @@
1samba (2:3.5.4~dfsg-1ubuntu3) maverick; urgency=low
2
3 * Add the translation of Unix Error code -ENOTSUP to NT Error Code
4 NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
5 (LP: #276472)
6
7 -- Surbhi Palande <surbhi.palande@canonical.com> Mon, 16 Aug 2010 15:09:30 +0300
8
1samba (2:3.5.4~dfsg-1ubuntu2) maverick; urgency=low9samba (2:3.5.4~dfsg-1ubuntu2) maverick; urgency=low
210
3 * Resync with debian:11 * Resync with debian:
412
=== added file 'debian/patches/error-trans.fix-276472'
--- debian/patches/error-trans.fix-276472 1970-01-01 00:00:00 +0000
+++ debian/patches/error-trans.fix-276472 2010-08-16 12:31:10 +0000
@@ -0,0 +1,15 @@
1Index: b/source3/lib/errmap_unix.c
2===================================================================
3--- a/source3/lib/errmap_unix.c
4+++ b/source3/lib/errmap_unix.c
5@@ -105,7 +105,9 @@
6 #ifdef ECANCELED
7 { ECANCELED, ERRDOS, ERRbadfid, NT_STATUS_CANCELLED},
8 #endif
9-
10+#ifdef ENOTSUP
11+ { ENOTSUP, ERRSRV, ERRnosupport, NT_STATUS_NOT_SUPPORTED},
12+#endif
13 { 0, 0, 0, NT_STATUS_OK }
14 };
15
016
=== modified file 'debian/patches/series'
--- debian/patches/series 2010-07-11 19:01:01 +0000
+++ debian/patches/series 2010-08-16 12:31:10 +0000
@@ -10,3 +10,4 @@
10smbtar-bashism.patch10smbtar-bashism.patch
11no-unnecessary-cups.patch11no-unnecessary-cups.patch
12autoconf.patch12autoconf.patch
13error-trans.fix-276472
1314
=== modified file 'source3/lib/errmap_unix.c'
--- source3/lib/errmap_unix.c 2010-07-11 19:01:01 +0000
+++ source3/lib/errmap_unix.c 2010-08-16 12:31:10 +0000
@@ -105,7 +105,9 @@
105#ifdef ECANCELED105#ifdef ECANCELED
106 { ECANCELED, ERRDOS, ERRbadfid, NT_STATUS_CANCELLED},106 { ECANCELED, ERRDOS, ERRbadfid, NT_STATUS_CANCELLED},
107#endif107#endif
108108#ifdef ENOTSUP
109 { ENOTSUP, ERRSRV, ERRnosupport, NT_STATUS_NOT_SUPPORTED},
110#endif
109 { 0, 0, 0, NT_STATUS_OK }111 { 0, 0, 0, NT_STATUS_OK }
110};112};
111113

Subscribers

People subscribed via source and target branches

to all changes: