# HG changeset patch # User Gordon Ross # Date 1351652607 14400 # Node ID 41660db11225906adb570c52ce61a14b6bcf92e0 # Parent 7a9c1d41dfbe3afdd196025b474dae9a3e19b81e 3305 smbfs mount shows password Reviewed by: Garrett D'Amore Reviewed by: Marcel Telka Approved by: Richard Lowe diff -r 7a9c1d41dfbe -r 41660db11225 usr/src/cmd/fs.d/smbclnt/mount/mount.c --- a/usr/src/cmd/fs.d/smbclnt/mount/mount.c Tue Feb 05 11:15:10 2013 -0800 +++ b/usr/src/cmd/fs.d/smbclnt/mount/mount.c Tue Oct 30 23:03:27 2012 -0400 @@ -36,7 +36,7 @@ * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * - * Copyright 2011 Nexenta Systems, Inc. All rights reserved. + * Copyright 2012 Nexenta Systems, Inc. All rights reserved. */ #include @@ -162,6 +162,7 @@ * to an "ro" by option processing. */ char optbuf[MAX_MNTOPT_STR] = "rw"; +char special[MAXPATHLEN]; int main(int argc, char *argv[]) @@ -298,7 +299,10 @@ if (optind + 2 != argc) usage(); - mnt.mnt_special = argv[optind]; + (void) snprintf(special, sizeof (special), "//%s/%s", + ctx->ct_fullserver, ctx->ct_origshare); + + mnt.mnt_special = special; mnt.mnt_mountp = argv[optind+1]; if ((realpath(argv[optind+1], mount_point) == NULL) ||