From a1e199034882ebf25918021d2d30962928e997d6 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 22 Jul 2008 14:40:05 +0000 Subject: * Makefile.in (cygcheck.exe): Link against ntdll. * bloda.cc: Use statically linked functions throughout. * cygpath.cc: Drop 9x considerations. * mkgroup.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique groupnames in domain\group syntax. Add -S option to define domain\group separator char. Ignore -u and -s options. * mkpasswd.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique usernames in domain\user syntax. Add -S option to define domain\user separator char. Ignore -g and -s options. Prefer to take homedir from $HOME over $HOMEDRIVE/$HOMEPATH. * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options. (getmntent): Accomodate throughout. * ps.cc: Fix copyright dates. * utils.sgml: Fix text for mkgroup and mkpasswd. --- winsup/utils/path.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'winsup/utils/path.cc') diff --git a/winsup/utils/path.cc b/winsup/utils/path.cc index 5a6fe3bb7..396badb79 100644 --- a/winsup/utils/path.cc +++ b/winsup/utils/path.cc @@ -298,7 +298,11 @@ struct opt {"exec", MOUNT_EXEC, 0}, {"notexec", MOUNT_NOTEXEC, 0}, {"cygexec", MOUNT_CYGWIN_EXEC, 0}, - {"nosuid", 0, 0} + {"nosuid", 0, 0}, + {"acl", MOUNT_NOACL, 1}, + {"noacl", MOUNT_NOACL, 0}, + {"posix=1", MOUNT_NOPOSIX, 1}, + {"posix=0", MOUNT_NOPOSIX, 0} }; static bool @@ -844,6 +848,10 @@ getmntent (FILE *) strcat (mnt.mnt_opts, (char *) ",noexec"); if ((m->flags & MOUNT_CYGDRIVE)) /* cygdrive */ strcat (mnt.mnt_opts, (char *) ",cygdrive"); + if ((m->flags & MOUNT_NOACL)) + strcat (mnt.mnt_opts, (char *) ",noacl"); + if ((m->flags & MOUNT_NOPOSIX)) + strcat (mnt.mnt_opts, (char *) ",posix=0"); mnt.mnt_freq = 1; mnt.mnt_passno = 1; m++; -- cgit v1.2.3