From 12a7852ec1adc8eb4985b3960daf3ef893c0b3ca Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 16 May 1995 00:38:08 +0000 Subject: Add -R to the short flags list. Make non-L usage ignore symbolic links, not all translators. Tweak the help message. --- utils/fsysopts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/fsysopts.c') diff --git a/utils/fsysopts.c b/utils/fsysopts.c index cf85e52a..ff7e511b 100644 --- a/utils/fsysopts.c +++ b/utils/fsysopts.c @@ -47,7 +47,7 @@ usage(status) printf(USAGE, program_invocation_name); printf("\ \n\ - -L, --dereference if a translator exists, put the new one on top\n\ + -L, --dereference if FILE is a symbolic link, follow it\n\ -R, --recursive pass these options to any child translators\n\ --help give this help list\n\ --version print version number of program\n\ @@ -57,7 +57,7 @@ usage(status) exit(status); } -#define SHORT_OPTIONS "L?V" +#define SHORT_OPTIONS "LR?V" static struct option options[] = { @@ -107,7 +107,7 @@ main(int argc, char *argv[]) default: usage(-1); } - node = file_name_lookup(node_name, (deref ? 0 : O_NOTRANS), 0666); + node = file_name_lookup(node_name, (deref ? 0 : O_NOLINK), 0666); if (node == MACH_PORT_NULL) error(1, errno, "%s", node_name); -- cgit v1.2.3