Bug #3305 » il-3305.patch
usr/src/cmd/fs.d/smbclnt/mount/mount.c Sun Sep 09 22:36:03 2012 +0100 → usr/src/cmd/fs.d/smbclnt/mount/mount.c Tue Oct 30 23:03:27 2012 -0400 | ||
---|---|---|
36 | 36 |
* Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
37 | 37 |
* Use is subject to license terms. |
38 | 38 |
* |
39 |
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
|
|
39 |
* Copyright 2012 Nexenta Systems, Inc. All rights reserved.
|
|
40 | 40 |
*/ |
41 | 41 | |
42 | 42 |
#include <stdio.h> |
... | ... | |
162 | 162 |
* to an "ro" by option processing. |
163 | 163 |
*/ |
164 | 164 |
char optbuf[MAX_MNTOPT_STR] = "rw"; |
165 |
char special[MAXPATHLEN]; |
|
165 | 166 | |
166 | 167 |
int |
167 | 168 |
main(int argc, char *argv[]) |
... | ... | |
298 | 299 |
if (optind + 2 != argc) |
299 | 300 |
usage(); |
300 | 301 | |
301 |
mnt.mnt_special = argv[optind]; |
|
302 |
(void) snprintf(special, sizeof (special), "//%s/%s", |
|
303 |
ctx->ct_fullserver, ctx->ct_origshare); |
|
304 | ||
305 |
mnt.mnt_special = special; |
|
302 | 306 |
mnt.mnt_mountp = argv[optind+1]; |
303 | 307 | |
304 | 308 |
if ((realpath(argv[optind+1], mount_point) == NULL) || |