1/* 2 * Copyright (c) 1994 Christopher G. Demetriou 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#ifndef lint 32static const char rcsid[] = |
33 "$Id: mount_msdos.c,v 1.8 1997/03/03 13:23:54 bde Exp $"; |
34#endif /* not lint */ 35 36#include <sys/param.h> 37#include <sys/mount.h> 38#include <sys/stat.h> 39 40#include <msdosfs/msdosfsmount.h> 41 --- 28 unchanged lines hidden (view full) --- 70 struct stat sb; 71 int c, error, mntflags, set_gid, set_uid, set_mask; 72 char *dev, *dir, ndir[MAXPATHLEN+1]; 73 struct vfsconf vfc; 74 75 mntflags = set_gid = set_uid = set_mask = 0; 76 (void)memset(&args, '\0', sizeof(args)); 77 |
78 while ((c = getopt(argc, argv, "u:g:m:o:")) != -1) { |
79 switch (c) { 80 case 'u': 81 args.uid = a_uid(optarg); 82 set_uid = 1; 83 break; 84 case 'g': 85 args.gid = a_gid(optarg); 86 set_gid = 1; --- 127 unchanged lines hidden --- |