From: YONETANI Tomokazu Date: Tue, 16 Sep 2008 08:24:19 +0000 (+0000) Subject: MFC - Don't fail if the file flags of source and copied symlinks don't match. X-Git-Tag: v2.0.1~15 X-Git-Url: https://repo.or.cz/w/dragonfly.git/commitdiff_plain/25a5c7cc3bb51fca1d0084df069a4c44fbdff088 MFC - Don't fail if the file flags of source and copied symlinks don't match. --- diff --git a/bin/cp/utils.c b/bin/cp/utils.c index 3a4cdd4f6d..7102db7634 100644 --- a/bin/cp/utils.c +++ b/bin/cp/utils.c @@ -32,7 +32,7 @@ * * @(#)utils.c 8.3 (Berkeley) 4/1/94 * $FreeBSD: src/bin/cp/utils.c,v 1.45 2005/02/09 17:37:37 ru Exp $ - * $DragonFly: src/bin/cp/utils.c,v 1.11 2007/06/15 07:02:51 corecode Exp $ + * $DragonFly: src/bin/cp/utils.c,v 1.11.6.1 2008/09/16 08:24:19 y0netan1 Exp $ */ #include @@ -320,7 +320,7 @@ setfile(struct stat *fs, int fd) if (!gotstat || fs->st_flags != ts.st_flags) if (fdval ? fchflags(fd, fs->st_flags) : - (islink ? (errno = ENOSYS) : + (islink ? (errno = 0) : chflags(to.p_path, fs->st_flags))) { warn("chflags: %s", to.p_path); rval = 1;