mirror of
git://git.suckless.org/sbase
synced 2024-12-23 07:25:07 +00:00
e14e0becce
The -d option is a GNU extension and is equivalent to its "-P --preserve=links" options. Since we don't implement the --preserve=links functionality anyway (it means preserve hard links between files), just call it -P, which is specified by POSIX. Additionally, there is no need to check for cp_Pflag again before copying the symlink itself because the only way the mode in the stat will indicate a symlink is if we used lstat (which we only do if -P is specified).
15 lines
309 B
C
15 lines
309 B
C
/* See LICENSE file for copyright and license details. */
|
|
extern int cp_aflag;
|
|
extern int cp_fflag;
|
|
extern int cp_Pflag;
|
|
extern int cp_pflag;
|
|
extern int cp_rflag;
|
|
extern int cp_vflag;
|
|
extern int cp_status;
|
|
|
|
extern int rm_fflag;
|
|
extern int rm_rflag;
|
|
|
|
int cp(const char *, const char *);
|
|
void rm(const char *);
|