diff options
| author | gutteridge <gutteridge@NetBSD.org> | 2019-03-20 02:50:50 +0000 |
|---|---|---|
| committer | gutteridge <gutteridge@NetBSD.org> | 2019-03-20 02:50:50 +0000 |
| commit | fa4a0e89e9d257ef0186a708cefb4305185eb72a (patch) | |
| tree | be9098e41064e6061fa323d44a9d969cf72199fc /bin | |
| parent | c5e54d94cfb29e28f7fe4a9da53fefb1b043a899 (diff) | |
pax: minor adjustments to comments in pat_rep.c
Amend several comments to match present reality (the functionality was
added back in 2007).
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/pax/pat_rep.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/pax/pat_rep.c b/bin/pax/pat_rep.c index 7dbcda73da1..05f4874e412 100644 --- a/bin/pax/pat_rep.c +++ b/bin/pax/pat_rep.c @@ -1,4 +1,4 @@ -/* $NetBSD: pat_rep.c,v 1.30 2018/06/13 15:14:40 christos Exp $ */ +/* $NetBSD: pat_rep.c,v 1.31 2019/03/20 02:50:50 gutteridge Exp $ */ /*- * Copyright (c) 1992 Keith Muller. @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)pat_rep.c 8.2 (Berkeley) 4/18/94"; #else -__RCSID("$NetBSD: pat_rep.c,v 1.30 2018/06/13 15:14:40 christos Exp $"); +__RCSID("$NetBSD: pat_rep.c,v 1.31 2019/03/20 02:50:50 gutteridge Exp $"); #endif #endif /* not lint */ @@ -85,12 +85,13 @@ static int resub(regex_t *, regmatch_t *, char *, char *, char *, char *); * parses the -s replacement string; compiles the regular expression * and stores the compiled value and its replacement string together in * replacement string list. Input to this function is of the form: - * /old/new/pg + * /old/new/gps * The first char in the string specifies the delimiter used by this * replacement string. "Old" is a regular expression in "ed" format which * is compiled by regcomp() and is applied to filenames. "new" is the - * substitution string; p and g are options flags for printing and global - * replacement (over the single filename) + * substitution string; g, p, and s are options flags for global + * replacement (over the single filename), printing, and preventing + * substitutions on symbolic link destinations. * Return: * 0 if a proper replacement string and regular expression was added to * the list of replacement patterns; -1 otherwise. @@ -895,7 +896,7 @@ fix_path( char *or_name, int *or_len, char *dir_name, int dir_len) * namelen the size of the name buffer. * nlen is the length of this name (and is modified to hold the length of * the final string). - * prnt is a flag that says whether to print the final result. + * flags contains various options to control behavior. * Return: * 0 if substitution was successful, 1 if we are to skip the file (the name * ended up empty) |
