diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-06-07 06:30:25 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-06-07 06:30:25 +0000 |
commit | 4e68976c74c31df589e6df98a36af08d01812eb3 (patch) | |
tree | f14fc15dd11f8aa22eae8093c31c9482a73ff4e6 /bin/cp/extern.h | |
parent | 939189542ecd10392ffaf53f33e9ea26735a3b84 (diff) | |
download | FreeBSD-src-4e68976c74c31df589e6df98a36af08d01812eb3.zip FreeBSD-src-4e68976c74c31df589e6df98a36af08d01812eb3.tar.gz |
Implement '-s' to copy as symlink, similar to the current -l link(2) handling.
This is also implemented in at least GNU coreutils cp.
While here also improve the '-l' handling to not open(2) the source file as
it does not actually need the descriptor.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'bin/cp/extern.h')
-rw-r--r-- | bin/cp/extern.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cp/extern.h b/bin/cp/extern.h index 94c416b..f8c20da 100644 --- a/bin/cp/extern.h +++ b/bin/cp/extern.h @@ -37,7 +37,7 @@ typedef struct { } PATH_T; extern PATH_T to; -extern int fflag, iflag, lflag, nflag, pflag, vflag; +extern int fflag, iflag, lflag, nflag, pflag, sflag, vflag; extern volatile sig_atomic_t info; __BEGIN_DECLS |