summaryrefslogtreecommitdiff
path: root/source3/client/mount.cifs.c
AgeCommit message (Collapse)AuthorFilesLines
2008-07-02Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of ↵Jeremy Allison1-0/+3
strlcat gives error. Jeremy. (This used to be commit d7c82997bdcf1acd7ac104efa0ad05e0b94935ea)
2008-06-27Fix two IBM checker warningsVolker Lendecke1-2/+2
Steve, please check! Thanks, Volker (This used to be commit 5222b8db3fb692e5071bfd1b41849a8eb0a17995)
2008-05-01Tidyup to ensure '\n' is treated identically in allJeremy Allison1-0/+2
cases. Jeremy. (This used to be commit 818fbc9889af8c9fb6e7978e8ed2269a78f14404)
2008-05-01Fix bug #5434 found by Ted Percival <ted@midg3t.net>.Jeremy Allison1-0/+2
Introduced by me in the strlcpy cleanup. Ensure the loaded password doesn't contain the '\n' at the end. Jeremy. (This used to be commit 41984743d9e89b6568119832c35ee4c0024e43a2)
2008-04-25Sync up client/mount.cifs.c with v3-2-test.Jeremy Allison1-25/+4
Jeremy. (This used to be commit 7a724d78e11f016f154c0029dc394ce133f41110)
2008-04-25mount.cifs: Zero mountpassword content before freeing.Karolin Seeger1-3/+24
Karolin (This used to be commit d99a31848bd2172c15500dd61ce30fef963c1ac6)
2008-04-24Make mount.cifs.c consistent with other Samba code usage w.r.tJeremy Allison1-69/+54
SAFE_FREE. Use #define constants not arbitrary numbers. Stevef please check. Karolyn, once Steve has checked please pull for 3.2-stable. Jeremy. (This used to be commit cc23f91d639db61903bf8b6c9fa46ec9c1f44178)
2008-03-31mount.cifs: fix several problems when mounting subdirectories of shares (try 2)Jeff Layton1-24/+66
This patch is the second patch to attempt to fix up some of the problems with mounting subdirectories of shares. The earlier patch didn't handle this correctly when POSIX extensions were enabled. This one does. This is a bit of a confusing area since the different components of a service string have different rules: 1) hostname: no '/' (slash) or '\' (backslash) is allowed to be embedded within the string 2) sharename: same rules as hostname 3) prefixpath: '\' *is* allowed to be embedded in a path component, iff POSIX extensions are enabled. Otherwise, neither character is allowed. The idea here is to allow either character to act as a delimiter when we know that the character can't be anything but a delimiter (namely everywhere up to the start of the prefixpath). The patch will convert any '\' unconditionally to '/' in the UNC portion of the string. However, inside the prefixpath, we can't make assumptions about what constitutes a delimiter because POSIX allows for embedded '\' characters. So there we don't attempt to do any conversion, and pass the prefixpath to the kernel as is. Once the kernel determines whether POSIX extensions are enabled, it can then convert the path if needed and it's able to do so. A patch to handle this has already been committed to the cifs-2.6 git tree. This patch also fixes an annoyance. When you mount a subdir of a share, mount.cifs munges the device string so that you can't tell what the prefixpath is. So if I mount: //server/share/p1/p2/p3 ..then /proc/mounts and mtab will show only: //server/share Finally, it also tries to apply some consistent rules to the uppercasing of strings. Signed-off-by: Jeff Layton <jlayton@redhat.com> (This used to be commit e03d1dfdb80333c071b600245eb749ef5664aa22)
2008-02-25Do the formatting change in all 3 places :-)Volker Lendecke1-3/+7
(This used to be commit d32066eaef1d09ec41fd5365e18eacd93e485d53)
2008-02-25Fix confusing error message -- bug 5252Volker Lendecke1-3/+5
Thanks to Walter Franzini (This used to be commit 19de47fef1b35c47885acc40760a232e4643079c)
2008-02-22Make sure mount.cifs.c compiles on Fedora 9 with gcc 4.3Simo Sorce1-0/+1
(This used to be commit ce57d388251063c22f89680e9d1c2129d9879975)
2008-02-14Revert "Merge in J.Layton patch and resolve conflict."Simo Sorce1-64/+26
This reverts commit 6b1a118eaaab405eeef0cf3c0488a2747af562ba. We found that this patch does not play well with currently released cifs.ko code, so after discussions with Jeff Layton and Steve french we decided it is best to back it off and re-think a better approach. Jeff will send new patches later, but for now it is better to just revert to the previous code (This used to be commit c5b7d538ecfa93377ff20704633ac57dbf8dd530)
2008-01-03Update mount.cifs helpSteve French1-3/+5
Steve (This used to be commit b9d2da4d10e6e7ac2dc604565c7f2ce39d0916b5)
2007-12-17Merge in J.Layton patch and resolve conflict.Simo Sorce1-26/+64
(This used to be commit 6b1a118eaaab405eeef0cf3c0488a2747af562ba)
2007-12-13We don't need to call endpwent if we never call getpwent.Jeremy Allison1-2/+0
Jeremy. (This used to be commit 27078d1292e8588956ae78e4cddb1bcebbe84478)
2007-12-13Add a varient of Steve Langasek <vorlon@debian.org> patchJeremy Allison1-10/+59
for bug #4780. Cause user mounts to inherit uid= and gid= from the calling user when called as non-root, except when overridden on the commandline. Jeremy. (This used to be commit 7fad5f38ea86ef76dc8e0853926b3248230616be)
2007-12-12Missed one strcpy call.Jeremy Allison1-1/+1
Jeremy. (This used to be commit b215fb1ad0d5bb3fa7084c2773845ce1dffb2173)
2007-12-12Add a portable version of strlcpy and strlcat and convertJeremy Allison1-36/+70
all strncpy/strcat calls to them. Convert all sprintf calls to snprintf. Safety first ! Jeremy. (This used to be commit eff2b368e891d523de38b43ced95798b74ae101e)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-0/+0
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-1/+1
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25355: IP address parsing did not allow for fully expanded ipv6 addressesSteve French1-1/+1
(which can be 12 bytes longer than we were allowing for). Thanks to Dr. David Holder (This used to be commit 0202a84e3f61665953bd5207218063b0d5ff6088)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r22982: Do not prompt for password on sec=none for mount.cifs (and allow guestSteve French1-2/+5
option to pass to kernel code so it can know when to retry) (This used to be commit 500d9236c419be6ec32cc209279aeea2234f1a21)
2007-10-10r22979: Revert previous checkin (which had some debug junk) and fix misc ↵Steve French1-68/+25
frees that valgrind noticed (This used to be commit c8aa60692ba23c43820b820db3371a86dfbf40b5)
2007-10-10r22779: Patch for not prompting for password on cifs mounts when "sec=none"Steve French1-10/+61
specified (This used to be commit 9af97d8ead85c05d08ee24727525894df5866630)
2007-10-10r22560: Clean up frees of realloc memory in mount.cifs (thanks to Alex forSteve French1-6/+6
reminding me how to use Valgrind). (This used to be commit 4616c29b9f09b9863f1446e83c98e3adc327d0f9)
2007-10-10r22526: Support deep tree mounts after share (instead of having to specifySteve French1-0/+10
prepath) (This used to be commit 0548dea6c7222dc22144a86fffd32675cd14b677)
2007-10-10r21840: mount.cifs compile on old libc missing bind mount #defineSteve French1-0/+4
Thanks to Thomas Jarosch for pointing this out. (This used to be commit bd9439cc7d80e172feab72229b553028e134de05)
2007-10-10r17605: Some C++ warningsVolker Lendecke1-15/+15
(This used to be commit 05268d7a731861b10ce8556fd32a004808383923)
2007-10-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison1-0/+10
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r16360: Fix Klocwork ID 136 520 521 522 523 542 574 575 576 607Volker Lendecke1-0/+5
in net_rpc.c: 715 716 732 734 735 736 737 738 739 749 in net_rpc_audit.c: 754 755 756 in net_rpc_join.c: 757 in net_rpc_registry: 766 767 in net_rpc_samsync.c: 771 773 in net_sam.c: 797 798 Volker (This used to be commit 3df0bf7d6050fd7c9ace72487d4f74d92e30a584)
2007-10-10r14127: Remove coverity warning on mount.cifs.cSteve French1-1/+7
(This used to be commit 2ec51635ae7ba448f18c4c1342a5fd2adb1ec869)
2007-10-10r14126: resolve two warnings from the coverity scanSteve French1-5/+8
(This used to be commit 32c7243b80f1f06d37511fb87f7a5c715f4847c6)
2007-10-10r14009: Remove last const warning (have to use CONST_DISCARD).Jeremy Allison1-1/+3
Jeremy. (This used to be commit af0ade470f2fac3509a44207b4572e279ba30e34)
2007-10-10r14006: Fix a couple of irritating warnings.Jeremy Allison1-2/+2
Jeremy. (This used to be commit ead13ca522d7b8cbb47d660d3cb73c3582088985)
2007-10-10r13714: Set MOUNT_CIFS_VENDOR_SUFFIX if _SAMBA_BUILD_ is set toLars Müller1-2/+11
"-"SAMBA_VERSION_OFFICIAL_STRING"-"SAMBA_VERSION_VENDOR_SUFFIX if SAMBA_VERSION_VENDOR_SUFFIX is set or "-"SAMBA_VERSION_OFFICIAL_STRING only if MOUNT_CIFS_VENDOR_SUFFIX is undefined. This results in: mount.cifs -V mount.cifs version: 1.10-3.1.2pre1-SVN-build-13706-foovendor or mount.cifs version: 1.10-3.1.2pre1-SVN-build-13706 Steve: If this is to long or you do not like it, we might add something lile -VV to report the added part. (This used to be commit 3c277c7a3cce14f185db7fede7c0c4ab77769670)
2007-10-10r11938: Fix cifs to handle non-numeric uid and gid parameters and merge ↵Steve French1-42/+122
trunk and SAMBA_3 versions of mount.cifs and cleanup cifs vfs help. Modified version of patch from Olaf Kirch <okir at SuSE dot de> for Novell Bug 120601 (This used to be commit 0981552deab9f73d2f784e5da52878ffdf845031)
2007-10-10r10656: BIG merge from trunk. Features not copied overGerald Carter1-21/+9
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10r9401: Allow disabling mandatory byte range lock mount flag, andSteve French1-2/+2
fix corresponding entry in mtab. (This used to be commit e5cb7d2131b7c6963f00a8a329bf589dd78e09ce)
2007-10-10r9225: Various minor CIFS mount helper fixes to less common error paths.Steve French1-6/+18
These bugs were found by Coverity static source code analysis tools. (This used to be commit 98a7304b6be4672f6b29e4a9406e63ccb842381c)
2007-10-10r6514: Allow domain= to be specified in credentials file. Fix umount.cifs ↵Steve French1-4/+34
help, allow root to unmount someone else's mount (This used to be commit ed27740397817c1f1b14ba187139c877dbf22168)
2007-10-10r6505: Add missing remount flag handlingSteve French1-0/+2
(This used to be commit 37685979bb4075a42018b89f3aee230fead5a7a4)
2007-10-10r6499: Add two newer mount options to syntax help for mount.cifsSteve French1-1/+1
(This used to be commit 2ed6b5ecab1c4d503207615d576b4520dfc15451)
2007-10-10r6103: Update list of mount options for mount.cifsSteve French1-3/+3
(This used to be commit 6efd6225fab93c3f31f09f6bbf6d032024650501)
2007-10-10r5897: Fix domain name parsing for cifs mount utilSteve French1-7/+4
(This used to be commit 72eda746c2cc0a362aef6e08f7cd89e65cc7e86d)
2007-10-10r5896: Fix cifs mounts to handle commas embedded in prompted password, and ↵Steve French1-17/+166
password and credential files. Fix cifs mounts to handle domain name and user name in username field (in form domain\user) (This used to be commit d98417b2cfd9f3748eabc9df64cf30b2bd8bc338)
2007-10-10r5688: ignore user_xattr mount parm so as not to confuse it with a user nameSteve French1-1/+3
(This used to be commit 58afef91c52293d72f1066a27387a60e51be4e79)
2007-10-10r5640: On failed mount (ENXIO) retry share name in uppercase (fix mount to ↵Steve French1-1/+20
FastConnect AIX SMB server) (This used to be commit 8bd98b643d097cbd5e1650ec63a2f3176c3879d7)
2007-10-10r5236: Ignore users mount parm (since unneeded by cifs kernel code). ↵Steve French1-1/+5
Suggested by Dirk Jagdmann. (This used to be commit 076485169e44a95981a12606c639b973c4e79d4e)