From: Erez Zadok Date: Thu, 20 Oct 2005 20:26:16 +0000 (+0000) Subject: longname, nowin95, shortname, user=N, group=N, mask=N, and X-Git-Tag: am-utils-6_2a2~32 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=8cdceefbb0328498ff112e71ed554ffaa6c6bdf2;p=am-utils-6.1.git longname, nowin95, shortname, user=N, group=N, mask=N, and dirmask=N. nowin95, shortname, user=N, group=N, mask=N, and dirmask=N. user=N, group=N, mask=N, and dirmask=N. --- diff --git a/ChangeLog b/ChangeLog index 7cf7c72..3c8772b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,14 +1,15 @@ 2005-10-19 Erez Zadok * doc/am-utils.texi (opts Option): document new pcfs options - longname, nowin95, shortname, uid=N, gid=N, mask=N, and dirmask=N. + longname, nowin95, shortname, user=N, group=N, mask=N, and + dirmask=N. * amd/ops_pcfs.c (mount_pcfs): process new pcfs options longname, - nowin95, shortname, uid=N, gid=N, mask=N, and dirmask=N. + nowin95, shortname, user=N, group=N, mask=N, and dirmask=N. * include/am_compat.h: provide compatibility mnttab string names, if needed, for pcfs mount options longname, nowin95, shortname, - uid=N, gid=N, mask=N, and dirmask=N. + user=N, group=N, mask=N, and dirmask=N. * include/am_utils.h: extern for hasmntstr(). diff --git a/NEWS b/NEWS index 5197109..5780146 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,7 @@ *** Notes specific to am-utils version 6.2a2 Support new mount options for type:=pcfs mounts: longname, nowin95, -shortname, uid=N, gid=N, mask=N, and dirmask=N. +shortname, user=N, group=N, mask=N, and dirmask=N. - Bugs fixed: * correctly print nfs_args->addr info (sin_family/port/addr) diff --git a/amd/ops_pcfs.c b/amd/ops_pcfs.c index b26d315..10f7db2 100644 --- a/amd/ops_pcfs.c +++ b/amd/ops_pcfs.c @@ -160,7 +160,7 @@ mount_pcfs(char *mntdir, char *fs_name, char *opts, int on_autofs) #ifdef HAVE_PCFS_ARGS_T_UID pcfs_args.uid = 0; /* default to root */ - if ((str = hasmntstr(&mnt, MNTTAB_OPT_UID)) != NULL) { + if ((str = hasmntstr(&mnt, MNTTAB_OPT_USER)) != NULL) { struct passwd *pw; if ((pw = getpwnam(str)) != NULL) pcfs_args.uid = pw->pw_uid; @@ -174,7 +174,7 @@ mount_pcfs(char *mntdir, char *fs_name, char *opts, int on_autofs) #ifdef HAVE_PCFS_ARGS_T_GID pcfs_args.gid = 0; /* default to wheel/root group */ - if ((str = hasmntstr(&mnt, MNTTAB_OPT_GID)) != NULL) { + if ((str = hasmntstr(&mnt, MNTTAB_OPT_GROUP)) != NULL) { struct group *gr; if ((gr = getgrnam(str)) != NULL) pcfs_args.gid = gr->gr_gid; diff --git a/doc/am-utils.texi b/doc/am-utils.texi index 6c379ca..4f4c081 100644 --- a/doc/am-utils.texi +++ b/doc/am-utils.texi @@ -2113,8 +2113,8 @@ Set ID of filesystem. Enable generations in ISO-9660 file systems. Generations allow you to see all versions of a given file. -@item gid=@var{n} -@cindex Mount flags; gid +@item group=@var{n} +@cindex Mount flags; group For PCFS mounts, set the group of the files in the file system to @var{n} (which can either be a group name or a GID number). The default group is the group of the directory on which the file system @@ -2342,8 +2342,8 @@ support TCP/IP mounts. @cindex Mount flags; timeo The NFS timeout, in tenth-seconds, before a request is retransmitted. -@item uid=@var{n} -@cindex Mount flags; uid +@item user=@var{n} +@cindex Mount flags; user For PCFS mounts, set the owner of the files in the file system to @var{n} (which can either be a user name or a UID number). The default owner is the owner of the directory on which the file system diff --git a/include/am_compat.h b/include/am_compat.h index 9901cda..2b9b595 100644 --- a/include/am_compat.h +++ b/include/am_compat.h @@ -285,12 +285,12 @@ #endif /* not MNTTAB_OPT_WSIZE */ /* next four are useful for pcfs mounts */ -#ifndef MNTTAB_OPT_UID -# define MNTTAB_OPT_UID "uid" -#endif /* not MNTTAB_OPT_UID */ -#ifndef MNTTAB_OPT_GID -# define MNTTAB_OPT_GID "gid" -#endif /* not MNTTAB_OPT_GID */ +#ifndef MNTTAB_OPT_USER +# define MNTTAB_OPT_USER "user" +#endif /* not MNTTAB_OPT_USER */ +#ifndef MNTTAB_OPT_GROUP +# define MNTTAB_OPT_GROUP "group" +#endif /* not MNTTAB_OPT_GROUP */ #ifndef MNTTAB_OPT_MASK # define MNTTAB_OPT_MASK "mask" #endif /* not MNTTAB_OPT_MASK */