Use -P instead of -S to specify that no symlinks should be followed.
There's no reason to make it different from cp(1), chmod(1), chown(1) etc. Requested by: sheldonh
This commit is contained in:
parent
97e8e70bd1
commit
701cbbb5f6
@ -93,14 +93,14 @@ directory when using the
|
||||
option.
|
||||
.It Fl p Ar path
|
||||
Use the file hierarchy rooted in
|
||||
.It Fl P
|
||||
Don't follow symbolic links in the file hierarchy, instead consider
|
||||
the symbolic link itself in any comparisons.
|
||||
.Ar path ,
|
||||
instead of the current directory.
|
||||
.It Fl r
|
||||
Remove any files in the file hierarchy that are not described in the
|
||||
specification.
|
||||
.It Fl S
|
||||
Don't follow symbolic links in the file hierarchy, instead consider
|
||||
the symbolic link itself in any comparisons.
|
||||
.It Fl s Ar seed
|
||||
Display a single checksum to the standard error output that represents all
|
||||
of the files for which the keyword
|
||||
|
@ -77,7 +77,7 @@ main(argc, argv)
|
||||
keys = KEYDEFAULT;
|
||||
init_excludes();
|
||||
|
||||
while ((ch = getopt(argc, argv, "cdef:iK:k:np:rs:SUuxX:")) != -1)
|
||||
while ((ch = getopt(argc, argv, "cdef:iK:k:np:Prs:UuxX:")) != -1)
|
||||
switch((char)ch) {
|
||||
case 'c':
|
||||
cflag = 1;
|
||||
@ -112,6 +112,10 @@ main(argc, argv)
|
||||
case 'p':
|
||||
dir = optarg;
|
||||
break;
|
||||
case 'P':
|
||||
ftsoptions ^= FTS_LOGICAL;
|
||||
ftsoptions |= FTS_PHYSICAL;
|
||||
break;
|
||||
case 'r':
|
||||
rflag = 1;
|
||||
break;
|
||||
@ -120,10 +124,6 @@ main(argc, argv)
|
||||
crc_total = ~strtol(optarg, &p, 0);
|
||||
if (*p)
|
||||
errx(1, "illegal seed value -- %s", optarg);
|
||||
case 'S':
|
||||
ftsoptions ^= FTS_LOGICAL;
|
||||
ftsoptions |= FTS_PHYSICAL;
|
||||
break;
|
||||
case 'U':
|
||||
Uflag = 1;
|
||||
uflag = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user