summaryrefslogtreecommitdiffstats
path: root/source/client/mount.cifs.c
Commit message (Collapse)AuthorAgeFilesLines
* mount.cifs: make local versions of strlcat and strlcpy staticJeff Layton2008-09-121-2/+2
| | | | | | ...to silence -Wmissing-prototypes Signed-off-by: Jeff Layton <jlayton@redhat.com>
* mount.cifs: unclear error message with "credentials"Steve French2008-08-271-2/+3
| | | | Thanks to Christophe Curis for the suggestion
* mount.cifs: don't prompt for password on krb5 mountsJeff Layton2008-08-211-1/+2
| | | | | | | | | krb5 mounts require that the user already have a valid krb5 ticket. Since we can't currently use the password entered, don't prompt for it. Also, switch to using strncmp instead of strcmp here. Signed-off-by: Jeff Layton <jlayton@redhat.com>
* Backing out most of changeset 5222b8db3fb692e5071bfd1b41849a8eb0a17995Steve French2008-08-051-2/+5
| | | | | | | | | | | | | | | | | (so parsing for domain parameter in mount.cifs matches online help) and rephrasing original code to make it more clear. The check for "domain" was meant to allow for "dom" or "DOM" and the option ("dom") described in the help (e.g. "/sbin/mount.cifs -?") is the shorter ("dom") form. The reason that the string we compare against is larger was to improve readability (we could compare against "dom" but note /* "domain" or "DOMAIN" or "dom" or "DOM" */ but it seemed terser to just show the larger string in the strcmp target. The change to "workgoup" from workg* (anything which begins with "workg" doesn't matter - it is a minor behavior change - but probably few scripts depend on the "alias" for this option). Rework code so that it is clearer what we are comparing against.
* Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of ↵Jeremy Allison2008-07-021-0/+3
| | | | | | strlcat gives error. Jeremy.
* Fix two IBM checker warningsVolker Lendecke2008-06-271-2/+2
| | | | | | | | Steve, please check! Thanks, Volker
* Tidyup to ensure '\n' is treated identically in allJeremy Allison2008-05-011-0/+2
| | | | | cases. Jeremy.
* Fix bug #5434 found by Ted Percival <ted@midg3t.net>.Jeremy Allison2008-05-011-0/+2
| | | | | | Introduced by me in the strlcpy cleanup. Ensure the loaded password doesn't contain the '\n' at the end. Jeremy.
* Sync up client/mount.cifs.c with v3-2-test.Jeremy Allison2008-04-251-25/+4
| | | | Jeremy.
* mount.cifs: Zero mountpassword content before freeing.Karolin Seeger2008-04-251-3/+24
| | | | Karolin
* Make mount.cifs.c consistent with other Samba code usage w.r.tJeremy Allison2008-04-241-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.
* mount.cifs: fix several problems when mounting subdirectories of shares (try 2)Jeff Layton2008-03-311-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>
* Do the formatting change in all 3 places :-)Volker Lendecke2008-02-251-3/+7
|
* Fix confusing error message -- bug 5252Volker Lendecke2008-02-251-3/+5
| | | | Thanks to Walter Franzini
* Make sure mount.cifs.c compiles on Fedora 9 with gcc 4.3Simo Sorce2008-02-221-0/+1
|
* Revert "Merge in J.Layton patch and resolve conflict."Simo Sorce2008-02-141-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
* Update mount.cifs helpSteve French2008-01-031-3/+5
| | | | Steve
* Merge in J.Layton patch and resolve conflict.Simo Sorce2007-12-171-26/+64
|
* We don't need to call endpwent if we never call getpwent.Jeremy Allison2007-12-131-2/+0
| | | | Jeremy.
* Add a varient of Steve Langasek <vorlon@debian.org> patchJeremy Allison2007-12-131-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.
* Missed one strcpy call.Jeremy Allison2007-12-121-1/+1
| | | | Jeremy.
* Add a portable version of strlcpy and strlcat and convertJeremy Allison2007-12-121-36/+70
| | | | | | all strncpy/strcat calls to them. Convert all sprintf calls to snprintf. Safety first ! Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-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.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-1/+1
|
* r25355: IP address parsing did not allow for fully expanded ipv6 addressesSteve French2007-10-101-1/+1
| | | | | | (which can be 12 bytes longer than we were allowing for). Thanks to Dr. David Holder
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22982: Do not prompt for password on sec=none for mount.cifs (and allow guestSteve French2007-10-101-2/+5
| | | | option to pass to kernel code so it can know when to retry)
* r22979: Revert previous checkin (which had some debug junk) and fix misc ↵Steve French2007-10-101-68/+25
| | | | | | frees that valgrind noticed
* r22779: Patch for not prompting for password on cifs mounts when "sec=none"Steve French2007-10-101-10/+61
| | | | specified
* r22560: Clean up frees of realloc memory in mount.cifs (thanks to Alex forSteve French2007-10-101-6/+6
| | | | reminding me how to use Valgrind).
* r22526: Support deep tree mounts after share (instead of having to specifySteve French2007-10-101-0/+10
| | | | prepath)
* r21840: mount.cifs compile on old libc missing bind mount #defineSteve French2007-10-101-0/+4
| | | | Thanks to Thomas Jarosch for pointing this out.
* r17605: Some C++ warningsVolker Lendecke2007-10-101-15/+15
|
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-0/+10
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r16360: Fix Klocwork ID 136 520 521 522 523 542 574 575 576 607Volker Lendecke2007-10-101-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
* r14127: Remove coverity warning on mount.cifs.cSteve French2007-10-101-1/+7
|
* r14126: resolve two warnings from the coverity scanSteve French2007-10-101-5/+8
|
* r14009: Remove last const warning (have to use CONST_DISCARD).Jeremy Allison2007-10-101-1/+3
| | | | Jeremy.
* r14006: Fix a couple of irritating warnings.Jeremy Allison2007-10-101-2/+2
| | | | Jeremy.
* r13714: Set MOUNT_CIFS_VENDOR_SUFFIX if _SAMBA_BUILD_ is set toLars Müller2007-10-101-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.
* r11938: Fix cifs to handle non-numeric uid and gid parameters and merge ↵Steve French2007-10-101-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
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-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)
* r9401: Allow disabling mandatory byte range lock mount flag, andSteve French2007-10-101-2/+2
| | | | fix corresponding entry in mtab.
* r9225: Various minor CIFS mount helper fixes to less common error paths.Steve French2007-10-101-6/+18
| | | | These bugs were found by Coverity static source code analysis tools.
* r6514: Allow domain= to be specified in credentials file. Fix umount.cifs ↵Steve French2007-10-101-4/+34
| | | | | | help, allow root to unmount someone else's mount
* r6505: Add missing remount flag handlingSteve French2007-10-101-0/+2
|
* r6499: Add two newer mount options to syntax help for mount.cifsSteve French2007-10-101-1/+1
|
* r6103: Update list of mount options for mount.cifsSteve French2007-10-101-3/+3
|
* r5897: Fix domain name parsing for cifs mount utilSteve French2007-10-101-7/+4
|